This is the little snippet that's causing me trouble.
I modified a GUI version that my buddy Orc made, into Jass, and made some locals like jumper (unit) and jumpto (location), getting rid of most of the functions so I could use locals effectively. Now when I use syntax checker it says: (Line 1) Comparing two variables of different primitive types (except real and integer) is not allowed...
But it seems fine for Line 2, no problem going 'set udg_collision_on = true'.
Could anybody please tell me why? One step away from finishing this little system Orc gave me.
JASS:
1 if udg_collision_on[GetUnitUserData(jumper)] == true then
2 call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1573" )
3 call SetUnitPathing((jumper), true )
4 set exec = 0
5 call SetUnitFlyHeightBJ((jumper), 0.00, 1000000000.00 )
6 call AddSpecialEffectLocBJ(GetUnitLoc(jumper), "Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl" )
7 call RemoveLocation (jumpto)
8 else
9 endif
I modified a GUI version that my buddy Orc made, into Jass, and made some locals like jumper (unit) and jumpto (location), getting rid of most of the functions so I could use locals effectively. Now when I use syntax checker it says: (Line 1) Comparing two variables of different primitive types (except real and integer) is not allowed...
But it seems fine for Line 2, no problem going 'set udg_collision_on = true'.
Could anybody please tell me why? One step away from finishing this little system Orc gave me.