Set Triggering Player?

Goober4473

TH.net Regular
Reaction score
7
I have some code I'm running that refers to the triggering player, since it's in response to a dialog button being pressed, but now I want to use the same code for AI players, and they can't click buttons.

The code is massive, and it's GUI code so no find/replace to make it a variable, so I'd really like to either force an event to go off with a specific player as the trigger, or directly set whatever variable GetTriggerPlayer() looks at.

I tried forcing the computer player to press a key, and then detecting that, but it didn't seem to work, but maybe that's because I entered the wrong string for forcing a press of the down arrow.
 

Jedi

New Member
Reaction score
63
You can directly use click actions instead of force them to click dialog button.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top