OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Arkon on 18 Apr 2007, 13:16:18
-
Hi,
Maybe someone can help with this one.
Set up this Global variable "ruattack"
#SETVARIABLES
ruattack = false
(D:\Games\Bohemia Interactive\ArmA\init.sqs)
When running the mission in the editor the game recognises "ruattack" in players initialisations etc, but not through scripts when turned to TRUE...
Any ideas peoples?
Thanks
Arkon
-
If it is MP, then when you change its value you should call publicVariable command so the value is distributed along all machines. Take that as a comment by someone that never did anything for MP :P
-
Hi Mandoble,
The mission is not MP...
Thanks for your reply
-
(D:\Games\Bohemia Interactive\ArmA\init.sqs)
What is that??? :blink:
init.sqs (as any other present scripts) should be placed into the mission's directory.
-
Hi, Mandoble
D:\Games\Bohemia Interactive\ArmA
Is the default directory, all my scripts are here and run fine.
(this is a user mission before export to single missions)
Arkon
-
It looks like not, seeing that your variable is not recognized when put in this script in this place.
Try putting your script in
My Documents\ArmA Other Profiles\yourName\Scripts
-
Hi Mandoble & WhisperOFP...
:o
Yup you are correct, I been living a false existance...
I guess this is gonna make editing A.A a whole lot easier :)
Thanks to you both