ScriptSlideFloorNice
From Amulets & Armor Wiki
Revision as of 00:26, 23 February 2014 by PeeWeeRotA (Talk | contribs) (Created page with "SlideFloorNice( [SectorNum], [Start], [End], [Time], [NextScript]) Moves a floor up or down over a period of time and calls the NextScript number when finished. ===Arguments...")
SlideFloorNice( [SectorNum], [Start], [End], [Time], [NextScript])
Moves a floor up or down over a period of time and calls the NextScript number when finished.
Arguments
SectorNum - The sector to move. Start - Height to start from when moving. (set to same as end for instant movement) End - Height to finish at. Time - Time it takes to finish moving. NextScript - Script number to run when finished. Set to -1 if none.
Example
40: // raise exit floor ChangeSideTexture(1372,"SWIT1U"); AreaSound(6007,-2528,110,300,255); SlideFloorNice(114, -400, -64, 100, -1); End()