![]() |
Shoot(); problems
Alright messing around with shoot for the first time in awhile and I get it to display but the gani disappears after one sec it seems. OnActionProjectile is never called.
PHP Code:
|
Hmm, check if the ani has multiple frames? I believe shoot changes the ani's frame depending on how far along the projectile is finished its trajectory.
But after messing with what you gave, I think it has a lot to do with the power and zangle you provided. Maybe try changing those? |
the ani does have multiple frames and is looped, I tried messing with the zangle and power but I had had no luck.
|
Well try setting it to a gani that has only a single frame to see if that's the issue. I'm not sure if projectiles will loop the gani.
|
nope
|
Then it's definitely the zangle and power. Raise those both up.
|
k, but when I do the particle usually goes flying way off the level, any good estimated ranges I should put those?
|
It all depends on what kind of trajectory you're trying to accomplish.
For the zangle, remember it's the initial angle it's 'thrown' at. pi/2 is being thrown straight up, while 0 is basically nothing(only works with 'classic-type' projectiles). As for the power... try starting with 1 and working your way around that. |
ok it looks like it falls and hits the ground but onActionProjectile is not called.
|
Should use {}'s for the function, also, why are you passing the NPC's x/y in the params?
|
I think it detects where the shoot projectile landed, also if there is just one command after the function you dont need the {}'s
|
On clientside you only get onactionprojectile2 i think, not sure
|
Use continuous in the gani.
|
Quote:
EDIT: Setting it to continuous made it work and add ing onactionprojectile2 made it work aswell thanks guys. :D |
| All times are GMT +2. The time now is 06:50 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.