uzzmick 10 Posted August 3, 2010 in the mission editor: how do i make it so i can select "sleep" from a tent and it skip ahead 8 hours? this is what ive got so far: a tent named "tent" with this in the int box: tent = tent addaction ["Sleep", "sleep.sqf"]; and a trigger with on act: skiptime 8 in the mission when i go to the tent Sleep pops up in the action menu but when i click it nothing happens how do i tell the trigger to go when i click sleep from the action menu??? Share this post Link to post Share on other sites
nominesine 0 Posted August 3, 2010 1) Write a very short sqf script called sleep.sqf. It should look like this: my_condition = true; 2) change the condition field in trigger mentioned above to my_condition Share this post Link to post Share on other sites
uzzmick 10 Posted August 3, 2010 (edited) wow thanks you have no idea how long i was messing with that, is their a way i can give the option to do it more than once? Edited August 3, 2010 by uzzmick Share this post Link to post Share on other sites
nominesine 0 Posted August 3, 2010 Yes, set the trigger to REPEAT and make sure my_condition becomes false* everytime it fires. Then you may use it as many times as you wish. * This can easily be achieved in the triggers own activation field by adding a single line of code: On act: skiptime 8; my_condition = false Share this post Link to post Share on other sites
uzzmick 10 Posted August 3, 2010 ah i understand because it was set to true and it needs to be reset to false so that it can set it to true again lol makes sence. Thanks alot nominesine youve been alot of help Share this post Link to post Share on other sites