Dev - Lua Libraries

Lua Command: s3sprite.getParent

Parameters

Return Values

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