ScarDoc

Start typing to search the SCAR reference.

Function
Anvil

Anvil_KillNeutralEntitiesNearPosition

Destroy entities, by type or blueprint, inside a marker or sector, or near a position

On this page
Anvil_KillNeutralEntitiesNearPosition(pos, OPT_entity_type, OPT_range  Int OPT_num_to_kill)

Description

By default this function will kill any entity with the \"wreck\" unit_type. Use OPT_num_to_kill to specify how many entities will be destroyed by the function. By default, all matching entities will be destroyed.

Parameters

  • posMarkerID/Pos/SectorIDrequired
  • OPT_entity_typeUnit_type/Ebprequired
  • OPT_range Int OPT_num_to_killRealrequired

Returns

Unknown

Source

Declared in the game's script sources at:

scar/gamescarutil.scar