Vivum Target

Stateful

Learn how to configure statefulness for your target

.stateful = false

.stateful = true

Overview

Statefulness is a feature that allows you to configure a target to be stateful, meaning that it will render an empty or filled star depending on the stateful property of the target. This is useful for things like doors or other open/closed states.

Implementation

stateful.lua

exports["vivum-target"]:AddTarget({
	name = "stateful",
	target = {
		position = vector3(0, 0, 0),
	},
	stateful = true -- false = empty, true = filled
})