seife 1 Posted June 2, 2013 (edited) 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: Edited June 2, 2013 by SeiFe Share this post Link to post Share on other sites
killzone_kid 1325 Posted June 2, 2013 Would help with debug if you could paste the errors Share this post Link to post Share on other sites
seife 1 Posted June 2, 2013 It's in the first post know. Are they stored somewhere as text maybe? Share this post Link to post Share on other sites
killzone_kid 1325 Posted June 2, 2013 try (_this select 0) instead of _this Share this post Link to post Share on other sites
seife 1 Posted June 4, 2013 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
Larrow 2675 Posted June 4, 2013 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
seife 1 Posted June 4, 2013 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