Jump to content
Sign in to follow this  
Jigsor

check if unit name in editor is player

Recommended Posts

Say i have 6 units each of the same class placed in editor each with unique names such as soldier1, soldier2 ect.

How can i verify that the playableUnit who is named soldier1 or soldier2 is occupied by a real player?

Typeof "classname" is not usable here since all units are the same type.

Share this post


Link to post
Share on other sites

Lol yeah, I should have know. Actually I did, but I was trying to do this in combination with a script which uses waypointAttachVehicle to attach a waypoint to a player. I've posted it on another thread. I thought I wasn't detecting a player because I get AttachedWaypoint: <NULL-object>.

Thanks all the same.

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  

×