SetActorAngle
Jump to navigation
Jump to search
void SetActorAngle (int tid, fixed angle)
Sets the actor's angle.
Use a value for the angle from 0.0 to 1.0.
- tid: TID of thing.
- angle: Angle to set. This is a fixed point angle.
This works to set the facing of monsters, players, or any other actor.
- North = 0.25
- West = 0.5
- South = 0.75
- East = 1.0
Example
This irritating script spins the player round and round for a while when it is activated.
script 1 (int spintime) { while (spintime-- > 0) { SetActorAngle (100, GetActorAngle (100) - 0.02); Delay (1); print(s:"You spin me right round, baby right round like a record, baby right round, round, round"); } }