Script attached to a linedef switch starts automatically [SOLVED]

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
User avatar
Joven0culto
Posts: 7
Joined: Thu Aug 22, 2024 4:08 am

Script attached to a linedef switch starts automatically [SOLVED]

Post by Joven0culto »

Nevermind, I found the error. the lack of "(void)" in the script, so this should be done like this:

Code: Select all

#include "zcommon.acs"

script 1 (void) //here was the mistake
{
	Ceiling_RaiseByValue(1,16,720);
	Thing_SpawnFacing(1,5,1,999);
}
I case that you want to do a switch like this watch the original post for complete info down here:
Spoiler: Original post

Return to “Mapping”