tank cannon
3 posts • Page 1 of 1
tank cannon
i have a tank with a cannon that uses this script:
but it doesnt shoot when i want it to. it takes about ten seconds for it to shoot.
any advice?
- Code: Select all
sim.time - e.this.controllerAcc >= 1 ? {
scene.addCircle({
radius = 0.1;
color = [0, 0, 0, 1];
pos = e.pos;
density = 100;
vel := 100 * e.normal
});
e.this.controllerAcc = sim.time
} : {}
but it doesnt shoot when i want it to. it takes about ten seconds for it to shoot.
any advice?
Phundementalism?
Ain't nobody got thyme fo dat.
Ain't nobody got thyme fo dat.
-

mold999 - Posts: 225
- Joined: Sun Jan 02, 2011 1:35 am
- Location: [176436, 3763234]
Re: tank cannon
mold999 wrote:but it doesnt shoot when i want it to. it takes about ten seconds for it to shoot.
Set the controller acc to 0.
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 7 guests




