OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 22 Jun 2005, 20:32:07

Title: wich way around
Post by: 456820 on 22 Jun 2005, 20:32:07
okay ive tried this thing both ways around and it still wont work its mean to check if the player = _unit ive tied both of these ways

Code: [Select]
? player = _unit : hint "you are _unit"
? _unit = player : hint "you are _unit"

? player != _unit : hint "ha your not _unit"
? _unit != player : hint "Ha your still no the player and this still hasnt worked"

any suggestions ?
thanks alot
Title: Re:wich way around
Post by: bedges on 22 Jun 2005, 20:40:15
did you bother to check the comref (http://www.ofpec.com/editors/comref.php?letter=num#==)?
Title: Re:wich way around
Post by: Peter_Bullet on 22 Jun 2005, 20:49:49
it's == to check equality.

(= is to set equal.)  8)
Title: Re:wich way around
Post by: 456820 on 23 Jun 2005, 16:25:47
okay thanks but what about the _unit and player wich do i put first ? or does it not matter
Title: Re:wich way around
Post by: bedges on 23 Jun 2005, 16:49:31
six and half a dozen.

is ten the number of oranges in my hand, or is the number of oranges in my hand ten?

or do i just have big hands?