OnObjectShot: 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 onObjectShot( object, player, weapon ) { MessagePlayer("You've shot object id "+object+" with weapon id "+weapon,player) } [/code] This will Message the...") |
mNo edit summary |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
==Description== | |||
function onObjectShot( object, player, weapon ) { | This event is called when a player shoots an object. | ||
MessagePlayer("You've shot object id "+object+" with weapon id "+weapon,player) | ==Syntax== | ||
<source lang=squirrel> | |||
onObjectShot(object,player,weapon); | |||
</source> | |||
==Example== | |||
<source lang=squirrel> | |||
function onObjectShot(object, player, weapon) { | |||
MessagePlayer("You've shot object id " + object + " with weapon id " + weapon, player); | |||
} | } | ||
</source> | |||
== Related Functions == | |||
{{Scripting/Squirrel/Events/Object_Events}} | |||
[[Category:Scripting/Squirrel/Events/Object_Events]] | |||
Latest revision as of 13:34, 7 May 2019
Description
This event is called when a player shoots an object.
Syntax
onObjectShot(object,player,weapon);
Example
function onObjectShot(object, player, weapon) {
MessagePlayer("You've shot object id " + object + " with weapon id " + weapon, player);
}
Related Functions
- onObjectShot( object, player, weapon )
- onObjectBump( object, player )