OnObjectBump: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
==Example== | ==Example== | ||
< | <source lang=squirrel> | ||
function onObjectBump(object,player) { | function onObjectBump(object,player) { | ||
MessagePlayer("You've bumped in to object id: "+object,player) | MessagePlayer("You've bumped in to object id: " + object, player) | ||
} | } | ||
</ | </source> | ||
== Related Functions == | |||
{{Scripting/Squirrel/Events/Object_Events}} | |||
[[Category:Scripting/Squirrel/Events/Object_Events]] |
Latest revision as of 13:32, 7 May 2019
Description
This event is called when the player touches a object!
Syntax
onObjectBump(object,player)
Example
function onObjectBump(object,player) {
MessagePlayer("You've bumped in to object id: " + object, player)
}
Related Functions
- onObjectShot( object, player, weapon )
- onObjectBump( object, player )