Jump to content
Sign in to follow this  
SHMadPup

Two actions?????

Recommended Posts

This is frustrating the crap out of me. I'm making a single player mission and when you begin, I have the main player executing an "init.sqs". Now in this script, I have this:

?(player == airman) : airmancash = airman addaction["Show my cash!","airman_cash.sqs"]

?(player == airman) : airmanhung = airman addaction["Hunger Level","checkhung.sqs"]

?(player == airman) : airmangroc = airman addaction["Groccery Level","checkgroc.sqs"]

I get those three actions when the game starts, but I get two of each.

:mad::confused:

Whats going wrong????

THANKS in advance

-SHMadPup

Share this post


Link to post
Share on other sites

hi,

If your script is named init.sqs you don't need to execute it. It will be executed automaticly by the engine. More info here: http://community.bistudio.com/wiki/Init.sqs and http://community.bistudio.com/wiki/Event_Scripts

If you execute the init.sqs it will be executed 2 times. One time by [] exec "init.sqs" and one time by the game engine. I guess that why you have your actions 2 times.

2 solutions:

- delete the execution line [] exec "init.sqs"

- or change the init.sqs name by another one like init_action.sqs

cya.

Nikiller.

Edited by Nikiller

Share this post


Link to post
Share on other sites

Oh..... well that would do it.... haha Thank you Nikiller.

-SHMadPup

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  

×