Jump to content
Sign in to follow this  
uzzmick

Action menu help

Recommended Posts

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

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

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 by uzzmick

Share this post


Link to post
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×