Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Gunrock

How can I make a switch that starts and stops polyobjects?

Recommended Posts

Hello!

I created two switches. One is suppose to start a rotating polyobject, the other switch is suppose to stop it from rotating. For some odd reason I cant get the other switch to stop it from rotating.

Here is the script I created.

 

script 11 (void)
{
 
 polyobj_rotateleft(66,24,255);
 polyobj_rotateright(67,24,255);
 Light_Fade(69,192,35);
 ambientsound("amb34", 127);
}

script 12 (void)
{
   
 Polyobj_Stop(66);
 Polyobj_Stop(67);
 Light_Fade(69,0,35);
 ambientsound("amb34", 127);
}

 

What am I doing wrong?

 

Thanks!!!

Share this post


Link to post

The script looks quite working... I can assume that the script is not executed due to incorrect linedef settings of the stop switch. Please check the "When player press use" and "Repeatable action" properties are on, and the action "80, ACS_Execute" is present and activates script 12.

Share this post


Link to post

I checked and double checked all the things you mentioned and still a no go. Script 12 just refuses to stop the polyobjects from rotating. I even used the script terminate function and still the same results.

Share this post


Link to post
Posted (edited)
6 hours ago, Gunrock said:

I checked and double checked all the things you mentioned and still a no go. Script 12 just refuses to stop the polyobjects from rotating. I even used the script terminate function and still the same results.

 

Perhaps my example map can help.

Open it with Slade3 to find out how to set up the sound.

 

P0arhBI.png

 

right switch : start

left switch   : stop

 

 

 

 

poly-rotating3.7z

Edited by Kappes Buur

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×