Function; SobGroup_SetPosition - HWRM/KarosGraveyard GitHub Wiki

SobGroup_SetPosition(<sGroup>, <tPosition>);

Description

Sets the position of all the ships in sGroup. Note that this means that any group with more than two ships will have all of these ships placed on top of one another!

The ships are not despawned, nor is the repositioning instant, although it happens extremely quickly (presumably around 1/20th of a second or less).

Note: Exactly how this repositioning interacts with other things such as push effects, hyperspace, despawning, etc. needs investigation.

Example

local pos = {
  12,
  607,
  -20
};
-- Rapidly respositions all ships in "my-group" to the given position:
SobGroup_SetPosition("my-group", pos);

Arguments

Param Type Description
sGroup string The group to reposition.
tPosition table The new position for sGroup. Ships will be stacked into this exact space.

Returns

nil

Related Pages

Comments

⚠️ **GitHub.com Fallback** ⚠️