Get user name
by Howard Dortch · in Torque Game Engine · 07/10/2004 (8:32 am) · 1 replies
In the fps example when a player picks up an item how can I get the name of the player that picked it up?
function ItemData::onPickup(%this,%obj,%user,%amount)
%this and %obj seem to both be the item. So %user must somehow be the player.
I tried %user.name, %user.getName(), %user.client.name but none of them will give me the name.
function ItemData::onPickup(%this,%obj,%user,%amount)
%this and %obj seem to both be the item. So %user must somehow be the player.
I tried %user.name, %user.getName(), %user.client.name but none of them will give me the name.
Torque Owner Owen Ortmayer