User Tools

Site Tools


crpl:docs:setimagerotation

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Image Commands

SetImageRotation

Arguments Result Notation
A unit UID, image slot, rotation in radians i1 s1 f1 --

Description

Sets the rotation of the image (in radians).

Examples

  • Rotate an image

    For X Y movement just set the x and y coordinates like you set the z coordinate. 0,0 is the center of the unit. Positive x is to the right and positive y is to the top. Basically take a look at these image commands

    # Rotate the image 
    Self "FlyingThing" 0.1 SetImageRotation
    
    # Make a part spin around
    Self "RotatingPart" GetImageRotation ->currentRotation
    <-currentRotation 0.1 add ->currentRotation
    Self "RotatingPart" <-currentRotation SetImageRotation
    


  • Next example
crpl/docs/setimagerotation.1358616804.txt.gz · Last modified: 2025/02/14 14:56 (external edit)