Jump to content
Sign in to follow this  
avibird 1

how can you limit the number of players using a teleport trigger!

Recommended Posts

A trigger

with a radio alpha in it's activation box

with this code onMapSingleClick "player setPos _pos; onMapSingleClick """";"; in the trigger on act

the trigger condition set to this

will give the players the ability to teleport around the map using the Radio.

How do I limited only one person to use this trigger.

I name the playable unit ADMIN and put the name in the condition box and took away this.

All players can still use the trigger. Why and how can I set it up that only one player can use it.

Share this post


Link to post
Share on other sites

Did u try change player to admin?

on act

onMapSingleClick "ADMIN setPos _pos; onMapSingleClick """";";

just admin can teleport.

Also its better if use addaction intense radio trigger.

Edited by Persian MO

Share this post


Link to post
Share on other sites

@ Persian no I am playing on a host server but thank you for the code for that.

I found the issues just place this code in the units INIT BOX or the mission INIT.SQF

_null = [] spawn {waitUntil {!isNull player}; if (player == NAME OF THE UNIT) then {onMapSingleClick { player setPosATL _pos }; }; };

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  

×