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
(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:
<code>
==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)
}
}
</code>
</source>
 
== Related Functions ==


This example will message player when he touches a object.TrackingBumps
{{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