Jump to content
Sign in to follow this  
seife

Sitting around a fire and trigger at specific time

Recommended Posts

Hey,

I'm working on a sniper mission at the moment where I want to fire a trigger (for a waypoint) at a specific time. I tried using the date module but tbh I dont have a clue how to use it or if it's even the right tool for this.

Moreover, I want some fireteams to be sitting around campfires. Anybody knows a working way to do this? I tried the following script but I got errors:

    _this setBehaviour "SAFE";
   _this disableAI "ANIM";
   _this action ["SITDOWN",_this];
   sleep 5;
   waitUntil{
        if(animationState _this != "amovpsitmstpsraswrfldnon")then{
             sleep 8+random(3);
             _this action ["SITDOWN",_this];
             waitUntil{animationState _this == "amovpsitmstpsraswrfldnon"}
        };
        behaviour _this != "SAFE"
   }; 
   _this enableAI "ANIM";

Error:

ju2

Edited by SeiFe

Share this post


Link to post
Share on other sites

It's in the first post know. Are they stored somewhere as text maybe?

Share this post


Link to post
Share on other sites

Thanks, now it works fine. :)

I removed the disableai to make them react too hostiles which seems to work.

However, nobody knows about the triggers at a specific time?

Share this post


Link to post
Share on other sites
However, nobody knows about the triggers at a specific time?

Could use the daytime command in a triggers condition?

There is another thread on the forum talking about keeping server and client time in sync using PV's as apparently the two drift abit.

It included a post from Kju showing how he does it, if I find it ill add a link here.

Share this post


Link to post
Share on other sites

Just thought about it and used a trigger with countdown. Not sure if this is the best solution but it works in SP.

Nevertheless, thanks! The command looks good. I will try 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  

×