Code: Select all
SimulatePlayerInput(int player, int input, int value)
For use with GetPlayerInput for minigames and the such.
Moderator: GZDoom Developers
Code: Select all
SimulatePlayerInput(int player, int input, int value)
Better exampleNecromage wrote:Why not? Because it is way to easy to abuse. In three seconds I could throw together a pwad that unbinds all the controls and exits.
In less time than that I could throw together a WAD that flashes your screen between full black and red, giving you seizures and making the game unplayable. And I wouldn't need any new features to do it.Necromage wrote:Why not? Because it is way to easy to abuse. In three seconds I could throw together a pwad that continually moves all the players to the left.
Not with this command, you couldn't. This is to simulate the same types of movement available to the [wiki]GetPlayerInput[/wiki] command. That does not mean you can use it to simulate any arbitrary keypress. In fact, you would only be able to affect the player's movement in-game; the console would be 100% off-limits.Cutmanmike (Really) wrote:In three seconds I could throw together a pwad that unbinds all the controls and exits.
i've done that...Cutmanmike (Really) wrote:In three seconds I could throw together a pwad that unbinds all the controls and exits.