PlayerEnterColshape

From RAGE Multiplayer Wiki
Revision as of 20:10, 18 September 2017 by Kemperrr (talk | contribs)

This event is triggered when a player enters a colshape.

Parameters

  • player - player which entered the colshape
  • shape - the colshape the player entered

Example

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

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

  mp.events.add("playerEnterColshape", playerEnterColshapeHandler);

See also

Checkpoint

Colshape

Entity

Player

Streaming

Vehicle

Waypoint