Is "player name" available in lua?
Posted: Sun Jan 06, 2008 4:52 pm
I am trying to make it so when Player A enters a region, the game says "Player A = Failure" or something like that. Right now it just says "Haha you fail" from the localize. Any idea how to make it dynamic and add in the player's name?
message.custom.drop is the static message
Code: Select all
ActivateRegion("drop1")
region1 = OnEnterRegion(
function(region, player)
if IsCharacterHuman(player) then
RewindAnimation("drop1")
PlayAnimation("drop1")
ShowMessageText( "message.custom.drop", DEF ) ShowMessageText( "message.custom.drop", ATT )
end
end,
"drop1"
)