Player::simulatePlayerInputGait

From RAGE Multiplayer Wiki
Revision as of 21:38, 2 January 2018 by Meta (talk | contribs) (added commas between the arguments in the syntax box)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is to make the player walk without accepting input from INPUT.

gaitType is in increments of 100s. 2000, 500, 300, 200, etc.

p4 is always 1 and p5 is always 0.

C# Example :

Function.Call(Hash.SIMULATE_PLAYER_INPUT_GAIT, Game.Player, 1.0f, 100, 1.0f, 1, 0); //Player will go forward for 100ms

Syntax

mp.game.player.simulatePlayerInputGait(amount, gaitType, speed, p4, p5);

Required Arguments

  • amount: float
  • gaitType: int
  • speed: float
  • p4: Boolean
  • p5: Boolean

Return value

  • Undefined

Example

// todo

See also