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
.
getScale
Parameters
int
spriteID
Return Values
float
widthScale
float
heightScale
Signature
float
widthScale
,
float
heightScale
= s3sprite.getScale(
int
spriteID
)
Description
Gets the
widthScale
and
heightScale
of the sprite with the given
spriteID
. See
s3sprite.setScale
for details.
Note:
widthScale
and
heightScale
will both be 0 if there is no sprite with the ID
spriteID
.