From SRB2 Wiki
Jump to: navigation, search

A_SetObjectTypeState is an action that changes the state of Objects of a specified type to the one specified by Var1 – refer to list of states for reference. Var2's lower 16 bits specify the Object type; the upper 16 bits determine the horizontal range to apply the action's effect within (scaled with the actor's own scale), measured in fracunits; only Objects of the specified type whose horizontal distance from the actor is within this range will have their state changed. If the range is set to 0, this action can change the state of Objects of the specified type anywhere across the whole map, regardless of distance. Note that this action will not affect any Objects of the specified type that do not have any health points.

This action originates from the v2.0 modification SRB2Morphed and was added to SRB2 itself in v2.1.

  Actions – Remote actions [view]