Skip to main content

Execute_ChangeState

Description

Changes the state of the BaseObject to the specified state. The instigator (entity that caused the state change) is set to the non-BaseObject entity.

Note

If S1 or S2 is None, they default to "Normal".

Parameters

ParameterDescription
BaseObjectTarget GameObject whose state is changed
S1State Group ID (defaults to "Normal" if None)
S2State ID to change to (defaults to "Normal" if None)

Examples

DescriptionBaseObjectCommandS1S2
Set Target to the Broken stateTargetChangeStateNormalBroken
Set Target on fireTargetChangeStateFireOnFire
Reset Target to normal stateTargetChangeStateNormalNormal
Turn on the lightTargetChangeStateLightOn