Difference between revisions of "ScriptSlideFloorNice"
From Amulets & Armor Wiki
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...") |
PeeWeeRotA (Talk | contribs) (→Arguments) |
||
Line 6: | Line 6: | ||
'''SectorNum''' - The sector to move. | '''SectorNum''' - The sector to move. | ||
+ | |||
'''Start''' - Height to start from when moving. (set to same as end for instant movement) | '''Start''' - Height to start from when moving. (set to same as end for instant movement) | ||
+ | |||
'''End''' - Height to finish at. | '''End''' - Height to finish at. | ||
+ | |||
'''Time''' - Time it takes to finish moving. | '''Time''' - Time it takes to finish moving. | ||
+ | |||
'''NextScript''' - Script number to run when finished. Set to -1 if none. | '''NextScript''' - Script number to run when finished. Set to -1 if none. | ||
Revision as of 01:15, 23 February 2014
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()