Home   Help Search Login Register  

Author Topic: New command getPlayerUID and _uid in OPC/OPD  (Read 1929 times)

0 Members and 1 Guest are viewing this topic.

Offline Dwarden

  • Members
  • *
New command getPlayerUID and _uid in OPC/OPD
« 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

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: New command getPlayerUID and _uid in OPC/OPD
« Reply #1 on: 21 Jun 2009, 18:18:40 »
Thanks Dwarden!  :)
try { return true; } finally { return false; }