OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 09 Aug 2004, 04:27:07
-
hi
dose anyone know how to detect a players name so say if the players name is ODB_CopyrightPhilly then to goto "rename"
cheers, Philly
-
You mean "DELTA four black (Lundstrom)" ? (or something)
You could play around with format.
I.e.,
_badname = "DELTA four BLACK (Lundstrom)"
_thisone = format ["%1", playerUnit]
if (_badname == _thisone) then { dostuff }
Of course, it wouldnt be much use for anyone playing the missing and not being named Lundstrom.
-
Try
? name player == "whatever" : goto "rename"
If it doesn't work play with the syntax a little.
-
Thanks for the replys guys
yea macguba thats what i ended up with, i was trying to do it with out the "" round the name so thats why i could find it out...
cheers, Philly