A_SetScale

From SRB2 Wiki
Jump to: navigation, search

A_SetScale is an action that sets the actor's scale. Var1 determines the actor's new scale, which must be given as a multiple of FRACUNIT (i.e. FRACUNIT is 100% of the normal scale, 2*FRACUNIT is 200%, and FRACUNIT/2 is 50%). The lower 16 bits of Var2 determine whether the new scale is applied instantaneously (0) or gradually applied over time (1). The upper 16 bits of Var2 determine whether the new scale is applied to the actor (0), its target (1), or its tracer (2) – if the actor does not have a target/tracer when either of the latter two cases are selected, this action will do nothing.

  Actions – Property modifiers [view]
A_ChangeAngleAbsoluteA_ChangeAngleRelativeA_ChangeColorAbsoluteA_ChangeColorRelativeA_FindTargetA_FindTracerA_SetFuseA_SetObjectFlagsA_SetObjectFlags2A_SetRandomTicsA_SetReactionTimeA_SetScaleA_SetTics