Jump to content
Sign in to follow this  
Ford555

FSM question (how to do a sleep)?

Recommended Posts

in a .fsm file, i know that sleep dont work, when unit is dead a want hidebody and then deletevehicle. and i want leave 5 seconds between both actions.

somebody help me please?

Share this post


Link to post
Share on other sites

Check for !alive -> save current time -> check for time >= _savedTime + 5 -> move to hide/delete

Share this post


Link to post
Share on other sites

thanks!

i'm doing something wrong.

in condition is dead? i write:

condition:

!alive _zombie

action:

_timedead = time;

then in state dead i write:

if (time >= _timedead + 10) then {

hideBody _zombie;

};

i dont know use time special variable i think.

Share this post


Link to post
Share on other sites

Condition: !alive _zombie

|

|

State: _time = time;

|

|

Condition: time > (_time + 10)

|

|

State: hideBody _zombie;

Share this post


Link to post
Share on other sites

Thanks boy, it works perfectly and now i understand it

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×