Difference between revisions of "VN ms fnc preventDestruction"
Jump to navigation
Jump to search
vn>Unknown user m (Generated by LM_exportFunctionsToWiki.sqf) |
Lou Montana (talk | contribs) (Page filling) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
|v= 1.00 | |v= 1.00 | ||
− | | | + | |author= Wyqer, veteran29 |
+ | |||
+ | |a= local | ||
− | |e= | + | |e= global |
|g1= general | |g1= general | ||
− | |d= | + | |d= 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. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |s= [] call [[ | + | |s= [obj] call [[VN_ms_fnc_preventDestruction]] |
− | |p1n= | + | |p1n= obj |
− | |p1t= | + | |p1t= object |
− | |p1d= | + | |p1d= object to make non-fully-destructible |
|p1v= | |p1v= | ||
Line 47: | Line 26: | ||
|p2v= | |p2v= | ||
− | |r1t= | + | |r1t= number |
− | |r1d= | + | |r1d= HandleDamage event handler id |
− | |x1= <code> | + | |x1= <code>[sogJeep] call [[VN_ms_fnc_preventDestruction]];</code> |
}} | }} |
Latest revision as of 21:58, 25 February 2021
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29 |
|
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;