EntityControllerChange

From RAGE Multiplayer Wiki

Client-Side
Event

 JavaScript



Triggered when an entities controller has been changed.

JavaScript Syntax

Parameters

  • entity: Object
  • newController: Object

Example

Client-Side
mp.events.add("entityControllerChange", (entity, newController) => {
    mp.gui.chat.push(`${entity.type}(ClientID: ${entity.id}) has switched to a new controller [${newController ? newController.name : 'Nobody'}]`);
});


See Also

Browser

Checkpoints

Colshapes

Console

Common

Damage

Vehicles

Voice chat

Streaming

Graphics

Waypoint

Misc