I'm trying to make it so the actors also trigger the bomb in my script
but I can only get it working for the ego
obviously I can't send to aMan
here's the snippet of code i'm working on (not the whole thing since we've already been over the rest of it)
(if(bombAble) // the timer on bomb has been reached ... it will do what follows
= bombAble FALSE // we only want to do it once, so turn this trigger variable back off
(if(aMan:inRect((- inventory2X 30) (- inventory2Y 30) (+ inventory2X 30) (+ inventory2Y 30)))
(aMan:view(37)setCycle(End)cel(0)loop(0)) // again not sure what this view is doing, guessing bomb blowing up!!
(aMan:setMotion(NULL))
)
(else
// ego more than 50 away... do nothing
)
= inventory2Room 0// reset the global variable
= inventory2Y 0 // reset the global variable
= inventory2Y 0 // reset the global variable
(inventory2View:posn(400 400)hide()) // get the item view off screen
)
so yea removing the (send made it not work at all
no need to write the code for me here
I just simply need to know how to use these things on actors cause I'm missing something
thanks!