Jump to content
Sign in to follow this  
BelgarionNL

plz read: easy question: about reactivating script in the INIT.SQF

Recommended Posts

easy question for you guys to answer but i couldn't find it anywhere!

how do i reset the 2 lines of code which are in the init.sqf so the script works again?????

launch = [plane1] ExecVM "launch\system.sqf";

launch = [plane1] ExecVM "launch\system.sqf";

the most preferable reactivation method is if the script would reset if the plane would have landed on the LHD CARRIER!

thank you so much if you can fix this for me! i've been bashing my head to wall trying to solve this :)

Share this post


Link to post
Share on other sites

try:

launch = [plane1] exec "launch\system.sqf"

also check the script is in your a folder called "launch" inside your mission folder.

schancky

Share this post


Link to post
Share on other sites

ok whats the difference between execVM and exec!

additonally i added a trigger with: on activation

CORRECTION doesn't work: _xhandle = [(thislist select 0)] execVM "launch\system.sqf";

it works except thats its supposed to be a one time activation and after its used you need to taxi back over the trigger and then you will be able to use it again!

do you know how to fix that?

(that trigger is from domination plane refuel/repair/rearm station)

so how do i make a area trigger that activates the launch script once! then deactivates untill its reactivated again by driving over it once more!

how freaking hard could that be! (for me impossible :P)

Edited by BelgarionNL

Share this post


Link to post
Share on other sites

Make two triggers.

1 Is your current trigger - include a test for a variable that you initialize to true. Have the launch script change that variable to false.

2. New trigger near your reset area. That trigger makes your test variable true again, enabling launch.

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  

×