OnObjectBump: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary
mNo edit summary
 
Line 6: Line 6:


==Example==
==Example==
<code>
<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)
}
}
</code>
</source>


== Related Functions ==
== Related Functions ==

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