Jump to content
Sign in to follow this  
lucilk

how to check player name?

Recommended Posts

here is a good one:

if i name a unit (player or playable) in editor as "unit1", and i have a script with a action (addaction) that should check what is the name of the caller and then give the action, so

if (name == unit1) then {script}

as an ideea.

i cant seem to find anything that checks what is the name of the unit that asks the execution.

thanks in advance

Share this post


Link to post
Share on other sites

unit1 == player

or just check for unit1 really. You could just add the action just to unit1 or even build in the check for unit1 in the condition field of the addAction.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×