VN_ms_fnc_preventDestruction

From Savage Game Design Wiki
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): local
Effect(s): global

Description

Adds event handler preventing destruction of the vehicle. Works only if vehicle is local to the executing machine. Eventhandler id is stored in the object under "vn_preventDamageEh" variable name.

Syntax

Syntax
[obj] call VN_ms_fnc_preventDestruction
Parameters
obj: Object - object to make non-fully-destructible
Return value
Number - HandleDamage event handler id

Examples

Example 1
[sogJeep] call VN_ms_fnc_preventDestruction;