EntityCreated

From RAGE Multiplayer Wiki
Revision as of 11:21, 26 October 2018 by Rootcause (talk | contribs) (Replaced HTML with template)

This event is triggered when an Entity Is Created. From my testing, this event is only accessible on the serverside.

Parameters

  • entity - the entity that was created

Example

Server-Side
function entityCreatedHandler(entity) {
  console.log(`An Entity with the ID of ${entity.id} was created at ${entity.position}`);
}

mp.events.add("entityCreated", entityCreatedHandler);

See also

Checkpoint

Colshape

Entity

Player

Streaming

Vehicle

Waypoint