Menu
IntroductionPhysics ObjectsForce EntitiesAdvanced UsageFurther Information
Air-only Property
Gyro 2.1a

Gyro_Force_AddProperty_AirOnly(entity force)
This function will apply the air-only property to the specified force, which causes it to interact only with objects not submerged in water. Any nearby objects not in an air environment (based on a single pointcontents() check) will be completely ignored. This property may be used to create a wind-like force or simulate the shock-absorbing effects of water and other liquids.

Gyro_Force_RemoveProperty_AirOnly(entity force)
Removes the air-only property from a force, allowing it freely interact with submerged objects once more.

Note: To affect objects based on their FL_ONGROUND flag, see the ground-pound property.