Path: blob/master/Sonic 1/Scripts/Mission/Gliding.txt
1482 views
// ----------------------------------1// RSDK Project: Sonic 12// Script Description: Gliding Object3// Script Author: Christian Whitehead/Simon Thomley4// Unpacked by Rubberduckycooly's script unpacker5// ----------------------------------67// ========================8// Aliases9// ========================1011private alias 18 : MISSIONNO_AERIALATTACK121314// ========================15// Events16// ========================1718event ObjectUpdate19game.missionFunctionNo = MISSIONNO_AERIALATTACK20object.type = TypeName[Blank Object]2122// This certainly could've just been done in just the ObjectStartup, but I suppose that was too much23end event242526event ObjectStartup27// Find all Gliding Objects in the level and make them always active28foreach (TypeName[Gliding], arrayPos0, ALL_ENTITIES)29object[arrayPos0].priority = PRIORITY_ACTIVE30next31end event323334// ========================35// Editor Events36// ========================3738event RSDKDraw39DrawSprite(0)40end event414243event RSDKLoad44LoadSpriteSheet("Global/Display.gif")45SpriteFrame(-16, -16, 32, 32, 1, 143)4647SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")48end event495051