onObjectBump
Description
This event is called when the player touches a object!
| Name | Description |
|---|---|
| object | The pointer of the object |
| player | The player whom triggered the event |
Example
This example shows a message whenever you touch an object.
function onScriptLoad() { obj <- CreateObject(....); obj.TrackingBumps = true;}function onObjectBump(object, player) { if(object.ID == obj.ID) { MessagePlayer("You've bumped in to object id: " + object.ID, player) }}Notes
💡
Make sure you track those events with object.TrackingBumps = true.