Weapon::setSimulateLocalDamageImpacts

From RAGE Multiplayer Wiki
Revision as of 18:25, 25 December 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Enables or disables the simulation of local damage impacts for weapons. === Syntax === <syntaxhighlight lang="javascript"> mp.game.weapon.setSimulateLocalDamageImpacts(doSimulate); </syntaxhighlight> === Required Parameters === * '''doSimulate:''' {{RageType|bool}} - Set to `true` to enable simulation, or `false` to disable. === Return Value === * '''undefined''' === Example === <syntaxhighlight lang="javascrip...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax


Summary

Enables or disables the simulation of local damage impacts for weapons.

Syntax

mp.game.weapon.setSimulateLocalDamageImpacts(doSimulate);

Required Parameters

  • doSimulate: bool - Set to `true` to enable simulation, or `false` to disable.

Return Value

  • undefined

Example

// Enable local damage impact simulation
mp.game.weapon.setSimulateLocalDamageImpacts(true);
mp.gui.chat.push("Local damage impacts simulation is now enabled.");


See Also