#1 16-02-2008 03:19

gaffkanone
Registered: 16-02-2008
Posts: 10

immunities bullets problem

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

#2 17-02-2008 07:23

Seemann
Registered: 07-08-2006
Posts: 2,156

Re: immunities bullets problem

Use $PLAYER_ACTOR instead of 0@

Offline

#3 17-02-2008 13:53

gaffkanone
Registered: 16-02-2008
Posts: 10

Re: immunities bullets problem

Seemann wrote:

Use $PLAYER_ACTOR instead of 0@

seemann you are the best wink clap

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

Board footer

Powered by FluxBB