Gunrock Posted March 25, 2019 How do I make this script execute a 3d floor that will lower and crush the player instantly when he stands underneath it? script 1 (void) { FloorAndCeiling_RaiseByValue(10, 20, 496); tagwait(10); delay(60); FloorAndCeiling_LowerByValue(10, 20, 496); tagwait(10); } 0 Share this post Link to post
Empyre Posted March 25, 2019 This isn't exactly what you are looking for, but it might do the job: Have the script turn the sector into an instant-death sector when it lowers the 3D floor, and back to normal when it raises the 3D floor. 0 Share this post Link to post
Urthar Posted March 26, 2019 You could try a dummy sector crusher to drive the movement of the 3DFloor, using Sector Set Link to bind the crusher's ceiling to the floor and ceiling of the 3DFloor. It will behave more like a Hexen crusher than a Doom one, in that it will stop and apply damage continous until the player dies or escapes. 0 Share this post Link to post
Kappes Buur Posted March 26, 2019 (edited) Spoiler Quote #include "zcommon.acs" script 1 (void) // triggered script { FloorAndCeiling_RaiseByValue (1, 10, 90); // raise both by 90 from 0 delay (35*15); Floor_MoveToValueAndCrush (1, 8, 0, 8, 2); // moves floor to 0 height Ceiling_LowerByValue (1, 8, 90); // lower ceiling by 90 } should do the trick. Edited March 26, 2019 by Kappes Buur 1 Share this post Link to post