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
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
MessagePlayer("You've shot object id "+object+" with weapon id "+weapon,player) | MessagePlayer("You've shot object id "+object+" with weapon id "+weapon,player) | ||
}</pre> | }</pre> | ||
== Related Functions == | |||
{{Scripting/Squirrel/Events/Object_Events}} | |||
[[Category:Scripting/Squirrel/Events/Object_Events]] |
Revision as of 22:11, 30 January 2017
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 )