OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: laggy on 29 Jun 2010, 03:01:21

Title: Weird (previously unseen) SOM problems
Post by: laggy on 29 Jun 2010, 03:01:21
RPT:
Code: [Select]
Error in expression <(time - _timeNow) >= (_mainScope getVariable "delay")>
  Error position: <>= (_mainScope getVariable "delay")>
  Error >=: Type Script, expected Number

Init of SOM:
Code: [Select]
this setVariable ["settings", [ [], true, ["Swordsman", ["Swordsman"], "HQ", ["HQ"]], 60, false]];
Player group is Swordsman, HQ doesn't exist, but this works perfectly in other missions.
Does anyone have an idea of what is wrong?
It even happens even without the init stuff, just a clean unnamed SOM synced with my group.
I am lost here. It works as it should, but I hate script errors.

Thanks in advance  :good:

Laggy
Title: Re: Weird (previously unseen) SOM problems
Post by: nominesine on 05 Jul 2010, 13:24:56
Apart from the entries in the RPT, does the error produce any unexpected behaviour that can be seen in the game?
Title: Re: Weird (previously unseen) SOM problems
Post by: laggy on 06 Jul 2010, 03:16:36
Only with -showScriptErrors ON as far as I know.

It doesn't seem to affect the SOM's functionality in the game  :scratch:
Title: Re: Weird (previously unseen) SOM problems
Post by: nominesine on 06 Jul 2010, 10:01:24
And the problem is...?!?
 ::)