PlayerExitColshape

From RAGE Multiplayer Wiki
Revision as of 19:45, 18 September 2017 by CurtisVL (talk | contribs) (Initial description)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This event is triggered when a player exits a colshape.

Parameters

  • player - player which exited the colshape
  • shape - the colshape the player left

Example

  let someColShape = mp.colshapes.newRectangle(0, 0, 100, 100);

  function playerExitColshapeHandler(player, shape) {
    if(shape == someColShape) {
      console.log(player.name + " left the colshape!");
    }
  }

  mp.events.add("playerExitColshape", playerExitColshapeHandler);

See also