You are not logged in.
Pages: 1
hello guys,
i want press the Q key - result: no bullets can hit me
here the code:
//-------------MAIN---------------
0000: NOP
:NONAME_2
wait 0
0AB0: key_pressed 81
else_jump @NONAME_2
Actor.SetImmunities(0@, 1, 0, 0, 0, 0)
else_jump @NONAME_2
02AB: set_actor 0@ immunities BP 1 FP 0 EP 0 DP 0 SP 0
jump @NONAME_2
but if i press Q, the game crash, what im doing wrong?
greez
Offline
Use $PLAYER_ACTOR instead of 0@
Offline
Use $PLAYER_ACTOR instead of 0@
seemann you are the best
working code for maybe other user's:
0000: NOP
:NONAME_2
wait 0
0AB0: key_pressed 81
else_jump @NONAME_2
Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)
else_jump @NONAME_2
02AB: set_actor $PLAYER_ACTOR immunities BP 1 FP 0 EP 0 DP 0 SP 0
jump @NONAME_2
Last edited by gaffkanone (17-02-2008 13:53)
Offline
Pages: 1