Home   Help Search Login Register  

Author Topic: Variable woes  (Read 1514 times)

0 Members and 1 Guest are viewing this topic.

Offline Arkon

  • Members
  • *
Variable woes
« 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

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Variable woes
« Reply #1 on: 18 Apr 2007, 13:23:27 »
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

Offline Arkon

  • Members
  • *
Re: Variable woes
« Reply #2 on: 18 Apr 2007, 13:29:47 »


Hi Mandoble,

The mission is not MP...

Thanks for your reply

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Variable woes
« Reply #3 on: 18 Apr 2007, 13:32:47 »
(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.

Offline Arkon

  • Members
  • *
Re: Variable woes
« Reply #4 on: 18 Apr 2007, 13:46:38 »

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

Offline WhisperOFP

  • Members
  • *
  • I'm a llama!
Re: Variable woes
« Reply #5 on: 18 Apr 2007, 13:54:32 »
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

Offline Arkon

  • Members
  • *
Re: Variable woes
« Reply #6 on: 18 Apr 2007, 14:00:41 »


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