Skip to content

atl/sm/units

import "atl/sm/units"

[server] AI units (sm.unit).

func Create(uuid sm.Uuid, position sm.Vec3, yaw float64, data atl.Value) sm.Unit

[server] Creates a unit of the character type uuid, feet at position, facing yaw radians.

func All() []sm.Unit

[server] Every unit.

func InRange(world sm.World, position sm.Vec3, rng float64) []sm.Unit

[server] Units within rng of a position.

func ForceDestroy(unit sm.Unit)

[server] Destroys the unit right away, skipping its death logic.