scriptObjectUpdated
Tells your gamemode that one of its objects changed after a transform, attachment or material edit, a completed move, or the loss of an attachment target. The snapshot is available in objects.getById when the handler runs. Changes during gamemode startup update the snapshot without calling the handler.
Signature
Section titled “Signature”server.on("scriptObjectUpdated", ({ object }) => void)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
object |
ScriptObject |
An object was edited or finished moving. |
Example
Section titled “Example”import { server } from "nativemp";
server.on("scriptObjectUpdated", ({ object }) => { server.log(`Object editing event for ID ${object.id}`);});