OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started by: Dwarden on 21 Jun 2009, 12:44:56

Title: New command getPlayerUID and _uid in OPC/OPD
Post by: Dwarden on 21 Jun 2009, 12:44:56
http://forums.bistudio.com/showpost.php?p=1319719&postcount=2

Quote
there was unfortunately typo in the readme about "GetPlayerID"
so correct usage syntax is

 
Code: [Select]
getPlayerUID unit;

works only in multiplayer
when used on AI it returns empty string
when used on player it returns "UID" (equal to one you see in profile)

also there is more surprises available and related to this
 for OnPlayerConnected and OnPlayerDisconnected commands
is now returned third variable _uid which contains this "UID" too
Title: Re: New command getPlayerUID and _uid in OPC/OPD
Post by: Worldeater on 21 Jun 2009, 18:18:40
Thanks Dwarden!  :)