Code: Select all
#include "zcommon.acs"
int switch = 0;
script 1 (void)
{
while ( switch == 0 )
{
... do the switch and door stuff
switch = switch + 1 ; // now increment switch to prevent another activation
}
}
Code: Select all
#include "zcommon.acs"
int switch = 0;
script 1 (void)
{
while ( switch == 0 )
{
... do the switch and door stuff
switch = switch + 1 ; // now increment switch to prevent another activation
}
}
Yes, it's a reserved word for the Switch/Case decision block. Name it DoorSwitch and you should be good to go.GuildNavigator wrote:does the mistake refer to the word "switch" in particular?
Something like this ?GuildNavigator wrote:The door is supposed to raise by units I explained in the script, and the pillar used as trigger should instead lower by certain units.
Code: Select all
script 3 (void)
{
Floor_LowerByValue (10, 5, 128);
Ceiling_RaiseByValue (10, 3, 4);
TagWait (10);
Pillar_Open (11, 8, 64, 64);
}
Make a script that makes the ceiling and floor of the control sector move at the same time to the desired heights.GuildNavigator wrote:Hi there!
I have another important question for you. How can I make 3D floors moving up and down like moving platforms? I'd like to make a wooden block get lifted by some chains..![]()
Thanks in advance!
Thank you very much! It does workterranova wrote:Make a script that makes the ceiling and floor of the control sector move at the same time to the desired heights.