<aside> ⚡ script "core_radiusPull" (int maxforce, int maxRange, int noFalloff)
</aside>
This script can be used to perform a horizontal push / pull in a radius to all enemy players.
maxForce
: int - The maximum force to use for the push / pullmaxRange
: int - The radius of the detection sphere in map units.noFalloff
: bool - If true, the force will always be maxForce
, otherwise it will vary with distance from the pushing / pulling actor.Returns the number of players afflicted by the push / pull.
<aside>
⚡ If you set maxForce
to 0, this can be an easy way to obtain the number of enemies in a radius.
</aside>