Function; SobGroup_SetGhost - HWRM/KarosGraveyard GitHub Wiki

SobGroup_SetGhost(target_group, enable)

Description

Causes ships in target_group to become 'ghosted', which is pretty much akin to a 'no-clip' mode whereby the affected ships ignore collision with other objects.

Example

-- ships in "my-group" will ignore collision
SobGroup_SetGhost("my-group", 1);

-- ... and later, maybe we want to re-enable collision:
SobGroup_SetGhost("my-group", 0);

Arguments

Param Type Description
target_group string The group who's ships will have their 'ghosted' status enabled or disabled.
enabled number (int) Either 0 for no-ghost (collisions enabled), or 1 to enable ghosting.

Returns

nil

Related Pages

Function Reference

Comments