Jump to content
Sign in to follow this  
KortneyMatherne

Mission editing & scripting

Recommended Posts

I was wondering if there's a way of restarting the game from INGAME without pressing ESCAPE.

Lets say I wanna do a trigger that if a group of soldiers die, the trigger gets activated and ON ACT field there will be a command to restart the game.

Can it be done?

-------------------------------------------------

corecontent_baby-420x0.jpg

air jordan cp3 iv black basketball shoes lebron 9 shoes jordan 6 heels for women

Edited by KortneyMatherne

Share this post


Link to post
Share on other sites

Well, I don't think so if Somebody can do it, I don't think so. I've got a way but is different.

my idea is active a "end" when soldiers are dead

1. Put a group of soldiers (any side) and call them grp1. You can do it with this command grp1 = group this

2. exec a script for example: [] exec "script.sqs"

3.Add a trigger: type: End #1 and condition: End

4.Create a script file with notepad, when you've finished it }, you'll save it as:

script.sqs in your missions folder. Ok this is the script:

#Check
?(count units grp1 == 0) : goto "Sdead"
goto : check

#Sdead

hint: "Soldiers are dead, so GAME IS OVER"
end=true

exit

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  

×