OnObjectShot: 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
No edit summary
Line 1: Line 1:
function onObjectShot(object,player,weapon ) {
==Description==
This event is called when a player shoots an object.
==Syntax==
onObjectShot(object,player,weapon )
==Example==
<pre>function onObjectShot(object,player,weapon ) {
   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>
 
 
This will Message the player which shotted a object which tracks shots and sends him information about it

Revision as of 12:46, 19 November 2016

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)
}