Dev Blog
Info
Dev
Overview
Definitions
Lua API
Data Types
Tutorials
Newsletter
Dev
Home
Data Types
Definitions
EntityDef
AttributeDef
Lua Libraries
s3sprite
Dev - Lua Libraries
Lua Command:
s3sprite
.
getRotation
Parameters
int
spriteID
Return Values
float
rotation
Signature
float
rotation
= s3sprite.getRotation(
int
spriteID
)
Description
Returns the
rotation
(in degrees) of the sprite with the given
spriteID
. See
s3sprite.setRotation
for details.
Note:
rotation
will be 0 if there is no sprite with the ID
spriteID
.