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

Multiple action switches in Zdoom (Doom in hexen format)

Question

I was wondering how to go about making a single switch that would trigger a cieling to drop in one sector and floor to raise in another,  working out the two actions with seperate switches was fine however I really want to have it all happen from one switch, trying to use some guides on ACS from similar questions hasnt worked so far.

Cheers In advance, never used this forum before so sorry if this is out of place.

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0
27 minutes ago, Doomedrookie said:

I was wondering how to go about making a single switch that would trigger a cieling to drop in one sector and floor to raise in another,  working out the two actions with seperate switches was fine however I really want to have it all happen from one switch, trying to use some guides on ACS from similar questions hasnt worked so far.

Cheers In advance, never used this forum before so sorry if this is out of place.

 

That is a perfect opportunity to use scripting.

https://zdoom.org/wiki/A_quick_beginner%27s_guide_to_ACS

 

For example:

https://zdoom.org/wiki/Action_specials

23:Floor_RaiseByValue (tag, speed, height)

40:Ceiling_LowerByValue (tag, speed, height)

 

 

Share this post


Link to post
  • 0
29 minutes ago, Doomedrookie said:

trying to use some guides on ACS from similar questions hasnt worked so far.

"It doesn't work" isn't a good description. What exactly didn't work?

 

Anyway, what you want to do is pretty trivial, a  script to do that could look like this:

 

#include "zcommon.acs"

script 1 (void)
{
	Ceiling_LowerByValue(1, 8, 64);
	Floor_RaiseByValue(2, 8, 64);
}

I've attached an example WAD.

example.zip

Share this post


Link to post
  • 0

I'm sorry I havent been able to indiviually reply to your awnsers as I'm still working out the site layout on my phone, your awnsers were both really helpful and I've got the switch working now! As well as being able to use void scripts to much better effect, I'm pretty sure I was formatting them really badly before, which was a bit of a brick wall for me, i'll download the example Wad and watch this video soon, thank you Kappes buur and Boris!

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
×