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
.
getParent
Parameters
int
spriteID
Return Values
int
parentID
Signature
int
parentID
= s3sprite.getParent(
int
spriteID
)
Description
Gets the
parentID
of the parent of the sprite with the given
spriteID
. See
s3sprite.setParent
for details.
Note:
parentID
will be -1 if there is no sprite with the ID
spriteID
Note:
parentID
will be -2 if the sprite with the given
spriteID
has no parent