OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Lone~Wolf on 15 Mar 2010, 21:13:16

Title: ? ((getWPPos [_group,1]) != _pos) : goto...
Post by: Lone~Wolf on 15 Mar 2010, 21:13:16
Oh dear, me again.

I keep getting the error message when the quoted code is run that it's trying to compare two different variables, where one of them is NOT an array!

I have defined both as an array!

Code: [Select]
_pos = getWPPos [_group,1]
#LOOP
_temppos = (getWPPos [_group,1])
? (_temppos != _pos) : goto "WPCHK"

Help?  :confused:

[EDIT] Okay, I have a working solution to this,

Code: [Select]
? ((_temppos select 0) != (_pos select 0)) || ((_temppos select 1) != (_pos select 1)) || ((_temppos select 2) != (_pos select 2)) : goto "WPCHK"