Home   Help Search Login Register  

Author Topic: Re: Having problems with timer script  (Read 1412 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris1986

  • Members
  • *
Re: Having problems with timer script
« on: 26 Jun 2009, 22:31:53 »
Hey , just tryed this in ArmA2 , I have a building full with targets ( Blue Ones ) all named T1-T12 . I have tryed to use the LCD_Timer.sqf script but when i do it instanly say's All Targets Cleared 0.5 Seconds .

Used : Trigger / BLUFOR
On Act : this exec "scrips\LCD_Timer.sqf"

Any help would be greatful .
« Last Edit: 02 Jul 2009, 13:32:36 by Spooner »

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Having problems with timer script
« Reply #1 on: 02 Jul 2009, 13:45:12 »
SQF scripts are run differently than SQS ones (engine does not read the extension to decide on the format of the script, except for init.sqf/sqs):
Code: (trigger activation) [Select]
call { [] execVM "scrips\LCD_Timer.sqf" }
Also bear in mind that the targets may not behave the same in A2 as they did in A1 (that is, the blue and red behaved very differently in A1, but in A2 they may work the same or in two entirely different ways). What you need is a target that falls down and stays down (this is how the blue ones worked in A1), rather than one that pops up again (this is how the red ones worked in A1). The actual colour of the targets in A2 is not really relevant.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)