Перейти к содержанию

PlayerExitColshape

Материал из RAGE MP Wiki Archive

This event is triggered when a player exits a colshape.

Default dimension for ColShapes is 0, and the player must be in the same dimension as the Colshape for them to collide.

Server-Side
Event

Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения C# Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения JavaScript





Parameters

  • player: Player - The player which exited the colshape
  • shape: ColShape - 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);


Client-Side Event

Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения C# Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения JavaScript



Parameters

  • shape: ColShape

Example

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

function playerExitColshapeHandler(shape) {
  if(shape == someColShape) {
    //Local player left the colshape
  }
}

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


See also

Checkpoint

Colshape

Entity

Player

Streaming

Vehicle

Waypoint