OnPlayerWeaponShot: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Event|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|OnPlayerWeaponShot}} {{FuncParameters}} == Example == __EDIT_ME__ {{RelatedFunctions}} {{ServerEvents}}")
 
No edit summary
Line 3: Line 3:
{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|__EDIT_ME__}}


{{FuncSyntax|OnPlayerWeaponShot}}
{{FuncSyntax|OnPlayerWeaponShot(player, weapon, hittype, hitid, hitX, hitY, hitZ, startX, startY, normalX, normalY, normalZ)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|player|The player that has shot the weapon.}}
{{FuncParam|player|Weapon model id.}}
{{FuncParam|hittype|The type of entity which was hit.}}
{{FuncParam|hitid|The identifier of the entity which was hit.}}
{{FuncParam|hitX|The X coordinate of this hit.}}
{{FuncParam|hitY|The Y coordinate of this hit.}}
{{FuncParam|hitZ|The Z coordinate of this hit.}}
{{FuncParam|startX|The X coordinate of where this short started from.}}
{{FuncParam|startY|The Y coordinate of where this short started from.}}
{{FuncParam|startY|The Z coordinate of where this short started from.}}
{{FuncParam|normalX|Impact normal X of the hit.}}
{{FuncParam|normalY|Impact normal Y of the hit.}}
{{FuncParam|normalZ|Impact normal Z of the hit.}}
== Example ==
== Example ==
__EDIT_ME__
__EDIT_ME__

Revision as of 22:08, 22 March 2019

OnPlayerWeaponShot

Type: Event
Context: Server
Introduced: v1.0

Description

__EDIT_ME__

Syntax

OnPlayerWeaponShot(player, weapon, hittype, hitid, hitX, hitY, hitZ, startX, startY, normalX, normalY, normalZ)

Parameters

  • player
    The player that has shot the weapon.
  • player
    Weapon model id.
  • hittype
    The type of entity which was hit.
  • hitid
    The identifier of the entity which was hit.
  • hitX
    The X coordinate of this hit.
  • hitY
    The Y coordinate of this hit.
  • hitZ
    The Z coordinate of this hit.
  • startX
    The X coordinate of where this short started from.
  • startY
    The Y coordinate of where this short started from.
  • startY
    The Z coordinate of where this short started from.
  • normalX
    Impact normal X of the hit.
  • normalY
    Impact normal Y of the hit.
  • normalZ
    Impact normal Z of the hit.

Example

__EDIT_ME__

See also

Player

Vehicle

Game

Package

NPC

Object

Pickup

Text3D

Door