[Polyobjects] Why is this script not working?
Posted: Fri Sep 01, 2017 10:21 am
I am working on a map, with rotating polyobject blocking the path. In order to get past the polyobject, you have to shoot a barrel that will destroy the control panel.
This will slow the polyobject rotation speed, so you can get past it.
However, the control panel script does not always work.Sometimes the control panel is destroyed by the barrel (that's how I know the script actually ran), but the polyobj won't stop rotating.
This is the concerning map part:

This is the script:
This will slow the polyobject rotation speed, so you can get past it.
However, the control panel script does not always work.Sometimes the control panel is destroyed by the barrel (that's how I know the script actually ran), but the polyobj won't stop rotating.
This is the concerning map part:

This is the script:
Code: Select all
script 999 OPEN{
Polyobj_RotateLeft(16,256,255);//Start rotating polyobj fastt
SetUserVariable(0,"user_crowbar",0); //some other crap in the OPEN script; probably unrelated to the problem
}
script "Kaboom" (void){
Floor_MoveToValue(23,32767,1400,0); // Destroy control panel (always works)
ChangeFloor(23,"ASHWALL3"); //Change the panel texture (always works)
Polyobj_Stop(16); //Stop polyobj (randomly works)
Polyobj_RotateLeft(16,16,255); //Start rotating polyobj but slower
}