Get Triggering Player

Igor_Z

You can change this now in User CP.
Reaction score
61
Can some 1 tell me what custom script should i use to get the triggering player in my trigger and turn off that trigger for only that player?
 

GetTriggerUnit-

DogEntrepreneur
Reaction score
129
Trigger:
  • Actions
    • custom script: if GetLocalPlayer() == GetTriggerPlayer() then
    • Trigger - Turn off (This Trigger)
    • Custom script: endif


But it as chaces to desync (I think)
 

Igor_Z

You can change this now in User CP.
Reaction score
61
What if i do this?

Set My_Player = Triggering Player
Custom script: if GetLocalPlayer() == udg_My_Player then
Turn off this trigger
Custom script: endif
How to avoid that desync that you say?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
You can't turn off a trigger only for one player.

You'll somehow have to use 1 trigger for each player, or merge them together to only use 1 :(
 

jwallstone

New Member
Reaction score
33
Jalisco's solution is way easier. Just have a boolean array, an entry for each player, and check if that player's boolean is set as part of the conditions of the trigger.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top