Properties: Difference between revisions

2 bytes removed ,  13:19, 25 August 2022
m
m (Remove inaccurate cleanup note)
Line 22: Line 22:


==EMP Sensitive==
==EMP Sensitive==
This item will deactivate if hit by an EMP blast, usually from [[Electromagnetic Impulse]] or an EMP grenade.
This item will deactivate if hit by an EMP blast, usually from [[Electromagnetic Pulse]] or an EMP grenade.


For modding purposes, this property usually corresponds to having an <code>IsEMPSensitive</code> attribute of <code>true</code> on an appropriate object part. There are several such parts; refer to <code>ObjectBlueprints.xml</code> for examples. There is a generic base class that supports parts with involved conditional behavior, called <code>IActivePart</code>; see [[Modding:Active Parts]] for details. <code>IsEMPSensitive</code>is a field on that class.
For modding purposes, this property usually corresponds to having an <code>IsEMPSensitive</code> attribute of <code>true</code> on an appropriate object part. There are several such parts; refer to <code>ObjectBlueprints.xml</code> for examples. There is a generic base class that supports parts with involved conditional behavior, called <code>IActivePart</code>; see [[Modding:Active Parts]] for details. <code>IsEMPSensitive</code>is a field on that class.