read player.name?
Posted: Sun Jul 22, 2012 3:49 am
hello
i've been searching on this forum to find a way to read the actual player.name and then if the player name is xxxxxxxxxx then load a "tag" in my WP file
i've tried
but it didn't work, i also tried with didn't work
:/
thanks in advance
i've been searching on this forum to find a way to read the actual player.name and then if the player name is xxxxxxxxxx then load a "tag" in my WP file
i've tried
Code: Select all
<onload>
local name = player.name
if name == xxxx then
__WPL:setWaypointIndex(__WPL:findWaypointTag("middle"))
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("end"))
end
</onload>
but it didn't work, i also tried with
Code: Select all
if name == "xxxx" then
:/
thanks in advance