EntityControllerChange
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
- click
- playerChat
- playerCommand
- playerDeath
- playerJoin
- playerQuit
- playerReady
- playerResurrect
- playerRuleTriggered
- playerSpawn
- playerWeaponShot
- addDataHandler
- dummyEntityCreated
- dummyEntityDestroyed
- entityControllerChange
- replayEditorRequest