Difference between revisions of "VN ms fnc preventDestruction"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "]]; |p1n=" to "]] |p1n=") |
Lou Montana (talk | contribs) (Page filling) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
Line 6: | Line 5: | ||
|author= Wyqer, veteran29 | |author= Wyqer, veteran29 | ||
− | |a= | + | |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= [obj] call [[VN_ms_fnc_preventDestruction]] | |
− | |||
− | |||
− | + | |p1n= obj | |
− | + | |p1t= object | |
− | + | |p1d= object to make non-fully-destructible | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |p1n= | ||
− | |p1t= | ||
− | |p1d= | ||
|p1v= | |p1v= | ||
Line 49: | 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;