====== COMP_ENFORCE_RADIUS ====== **Category**: Component\\ **Mod Dependency**: [[https://foundation.mod.io/foundation-ebf|Foundation EBF]] Parent class: [[api:component|COMPONENT]] ===== Properties ===== ---- ==== Radius ==== * **Type**: ''float'' * **Default value**: ''1'' ---- ==== Enforcer ==== //Runtime only// * **Type**: ''[[api:game_object|GAME_OBJECT]]'' * **Default value**: ''nil'' ===== Functions ===== ---- ==== setEnforcer ==== ''void **setEnforcer**(//gameObject//)'' ^ Name ^ Type ^ Description ^ | //''gameObject''// | ''[[api:game_object|GAME_OBJECT]]'' | The centre of the radius | ==== getPosition ==== ''vec3f **getPosition**()'' Returns a uniformly distributed random position within the specified radius in 2 dimensions