# HG changeset patch # User almikes@aol.com # Date 1417579868 0 # Node ID dbb7937903a44e35fc421e5b50944c28c770b793 # Parent c0367902bea77dabc2898edeb82a31afb9d04fe8 Add onSpritePlacement. diff -r c0367902bea7 -r dbb7937903a4 LuaAPI.wiki --- a/LuaAPI.wiki Wed Dec 03 03:57:51 2014 +0000 +++ b/LuaAPI.wiki Wed Dec 03 04:11:08 2014 +0000 @@ -254,6 +254,11 @@
This function is called when a hedgehog is restored (unhidden).
+=== onSpritePlacement(spriteId, centerX, centerY) (0.9.21) === +This function is called when a [Sprites Sprite] has been placed. + +`spriteID` is the type of the sprite, you find a list at [Sprites Sprites]. `centerX` and `centerY` are the coordinates of the center of the sprite. + === onGirderPlacement(frameIdx, centerX, centerY) (0.9.21) === This function is called when a girder has been placed.