Scripting/Squirrel/Client Events/Player::PlayerShoot: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
Kennedyarz (talk | contribs) (Created page with "Appears when the player fires == Syntax == <pre>player - The instance.</pre> == Arguments == None. == Example == Appears when the player fires <code lang="squirrel"> fun...") |
Kennedyarz (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
<code lang="squirrel"> | <code lang="squirrel"> | ||
function Player::PlayerShoot(player, weapon, hitEntity, hitPosition) | |||
function Player::PlayerShoot(player, weapon, hitEntity, hitPosition) | |||
{ | { | ||
Console.Print( player.ID + " Attacking. weapon "+weapon+"" ); | Console.Print( player.ID + " Attacking. weapon "+weapon+"" ); | ||
} | } | ||
</code> | </code> | ||
Latest revision as of 22:31, 1 June 2017
Appears when the player fires
Syntax
player - The instance.
Arguments
None.
Example
Appears when the player fires
function Player::PlayerShoot(player, weapon, hitEntity, hitPosition)
{
Console.Print( player.ID + " Attacking. weapon "+weapon+"" );
}
Notes
This server-client