Solved How use "keyshoot"?

Question that is answered or resolved.
Sorry for my stupid question. I use "script.c". My character is supposed to shoot projectiles in the upward direction, I follow the instructions, but nothing comes out.
My code:

anim attack1
loop 0
delay 8
offset 51 70
bbox 42 27 16 44
hitfx data/sounds/boom.wav
frame data/chars/Aslan/Сaptive2/up1.gif
@cmd keyshoot "EnergyBallU" -33 33 0 2 80
frame data/chars/Aslan/Сaptive2/up2.gif
frame data/chars/Aslan/Сaptive2/up3.gif
frame data/chars/Aslan/Сaptive2/up4.gif
 
Solution
Is Keyshoot Inside script.c? Post your Keyshoot script
My god, that's the problem. I shouldn't have used anything extra. Yes, only script.c, everything works. Thank you. Sorry, this is my first experience in scripting, I'm more of an artist by vocation, but not a programmer at all.
Make sure the EnergyBallU entity is set to load not know in models.txt or use load EnergyBallU in the header of the enitity thats shooting EnergyBallU.
 
Убедитесь, что для объекта EnergyBallU установлено значение load not know в models.txt или используйте load EnergyBallU в заголовке объекта, который запускает EnergyBallU.
No, unfortunately that's not the point.

OpenBor say: "Script compile error: can't find function 'keyshoot'"

My character header has "animation script data/scripts/script.c". Do I need to add "keyscript" or something like that? It's just not mentioned in the instructions...
 
Back
Top Bottom