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.
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.