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
|  (Created page with "<code> function onObjectBump(object,player) {    MessagePlayer("You've bumped in to object id: "+object,player) } </code>  This example will message player when he touches a o...") | mNo edit summary | ||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| < | ==Description== | ||
| This event is called when the player touches a object! | |||
| ==Syntax== | |||
| <pre>onObjectBump(object,player)</pre> | |||
| ==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 )