flag_wait( "electricity_on" );

broken avatar :(
Created 2638 days ago
by ZMBS DON GOONY
0 Members and 1 Guest are viewing this topic.
2,783 views
broken avatar :(
×
broken avatar :(
Date Registered: 14 March 2012
Last active: 2142 days ago
Posts
105
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
i love zombies
×
ZMBS DON GOONY's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
ZMBS DON GOONY's Contact & Social LinksZMBS_DON_GOONY
is this the correct code to make my lander trigger not be activated til the power is on
broken avatar :(
×
broken avatar :(
Location: 00
Date Registered: 13 March 2012
Last active: 434 days ago
Posts
43
Respect
Forum Rank
Legless Crawler
Primary Group
Community Mapper Elite
My Groups
More
My Contact & Social Links
More
Signature
[You are not allowed to view external links. Register or Login to see them]
×
CoDMapper's Groups
Community Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
CoDMapper's Contact & Social LinksCoDMapperCoDMapper
What type of zombie map are you doing? In my Verruckt scripts it's "power_on"
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 4 days ago
Posts
5,545
Respect
6,475Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
For 1.4 maps, electricity_on is correct. Older maps, I'm not sure.
broken avatar :(
×
broken avatar :(
Date Registered: 14 March 2012
Last active: 2142 days ago
Posts
105
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
i love zombies
×
ZMBS DON GOONY's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
ZMBS DON GOONY's Contact & Social LinksZMBS_DON_GOONY
im using 1.4 scripts der riese style map
gnroom_trig = GetEntArray("lan","targetname");
array_thread(gnroom_trig,::lunar);
goonrm_trig1 = GetEntArray("lan1","targetname");
array_thread(goonrm_trig1,::lunar);

 
Lunar()
{
self endon("disconnect");
self UseTriggerRequireLookAt();
self setHintString( "Press &&1 To Use THE GOONMOBILE" );
self setCursorHint("HINT_NOICON");
level.LunarInUse = false;
level.LunarPosition = "Spawn";
SpawnPos = ( 1536, -1128, 0);
level.Lunar1 = spawn( "script_model", SpawnPos );
level.Lunar1 setmodel( "zombie_teleporter_pad" );
level.trig = spawn( "trigger_radius", level.Lunar1.origin, 1, 50, 20 );
level.PlayerOrig0 = spawn( "script_model", level.Lunar1.origin + ( 0, 50, 10 ) );
level.PlayerOrig0 linkto( level.Lunar1 );
level.PlayerOrig2 = spawn( "script_model", level.Lunar1.origin + ( 0, -50, 10 ) );
level.PlayerOrig2 linkto( level.Lunar1 );
level.PlayerOrig3 = spawn( "script_model", level.Lunar1.origin + ( 50, 0, 10 ) );
level.PlayerOrig3 linkto( level.Lunar1 );
level.PlayerOrig4 = spawn( "script_model", level.Lunar1.origin + ( -50, 0, 10 ) );
level.PlayerOrig4 linkto( level.Lunar1 );
for(;;)
{
self waittill ("trigger",player);
level.LunarInUse = true;
self PlayerCheck(0,level.PlayerOrig0);
self PlayerCheck(1,level.PlayerOrig2);
self PlayerCheck(2,level.PlayerOrig3);
self PlayerCheck(3,level.PlayerOrig4);
self thread platform_effect();
self thread platform_Sound();
self setHintString( "THE GOONMOBILE IS IN USE" );
level.Lunar1 moveto( ( 1528, -1128, 552 ), 3, .5 );
level.Lunar1 vibrate((0,-100,0), 1.5, .4, 3);
level.Lunar1 waittill( "movedone" );
wait .2;
level.Lunar1 moveto( ( 2824, 848, 480), 6 );
level.Lunar1 waittill( "movedone" );
wait .2;
level.Lunar1 moveto( ( 3104, 864, 0 ), 3, 0, .5 );
level.Lunar1 vibrate((0,-100,0), 1.5, .4, 2.5);
level.Lunar1 waittill( "movedone" );
self PlayerUnlink(0);
self PlayerUnlink(1);
self PlayerUnlink(2);
self PlayerUnlink(3);
self notify( "platform_arived" );
self enable_trigger();
level.LunarPosition = "Spawn";
level.LunarInUse = false;
wait .2;
while(1)
{
self waittill ("trigger",player);
level.LunarInUse = true;
self PlayerCheck(0,level.PlayerOrig0);
self PlayerCheck(1,level.PlayerOrig2);
self PlayerCheck(2,level.PlayerOrig3);
self PlayerCheck(3,level.PlayerOrig4);
self thread platform_effect();
self thread platform_Sound();
self setHintString( "THE GOONMOBILE IS IN USE" );
level.Lunar1 moveto( ( 2824, 848, 480 ), 3, .5 );
level.Lunar1 vibrate((0,-100,0), 1.5, .4, 3);
level.Lunar1 waittill( "movedone" );
wait .2;
level.Lunar1 moveto( ( 1528, -1128, 552 ), 6 );
level.Lunar1 waittill( "movedone" );
wait .2;
level.Lunar1 moveto( ( 1536, -1128, 0  ), 3, 0, .5 );
level.Lunar1 vibrate((0,-100,0), 1.5, .4, 2.5);
level.Lunar1 waittill( "movedone" );
self PlayerUnlink(0);
self PlayerUnlink(1);
self PlayerUnlink(2);
self PlayerUnlink(3);
self notify( "platform_arived" );
self enable_trigger();
level.LunarPosition = "Spawn";
level.LunarInUse = false;
wait .2;
break;
}
}
}

here is my code can you plz put the flag wait in the right spot and also with this code my lander is scripted to go to from a to b then it goes from b to b then it goes from b to a

can you make it where it goes from a to b then from b to a

also i had to make 2 triggers thread the same script can you please clean this up for me im a noob at scripting i just get a little lucky makin it work after brreakin my map constantly lol
broken avatar :(
×
broken avatar :(
Location: 00
Date Registered: 13 March 2012
Last active: 434 days ago
Posts
43
Respect
Forum Rank
Legless Crawler
Primary Group
Community Mapper Elite
My Groups
More
My Contact & Social Links
More
×
CoDMapper's Groups
Community Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
CoDMapper's Contact & Social LinksCoDMapperCoDMapper
Lunar()
{
    self endon("disconnect");
    self setCursorHint("HINT_NOICON");
    self UseTriggerRequireLookAt();
    self setHintString( "Power Must Be On To Use THE GOONMOBILE" );   
    level.LunarInUse = false;
    level.LunarPosition = "Spawn";
    SpawnPos = (1536, -1128, 0);
    level.Lunar1 = spawn( "script_model", SpawnPos );
    level.Lunar1 setmodel( "zombie_teleporter_pad" );
    level.trig = spawn( "trigger_radius", level.Lunar1.origin, 1, 50, 20 );
    level.PlayerOrig0 = spawn( "script_model", level.Lunar1.origin + ( 0, 50, 10 ) );
    level.PlayerOrig0 linkto( level.Lunar1 );
    level.PlayerOrig2 = spawn( "script_model", level.Lunar1.origin + ( 0, -50, 10 ) );
    level.PlayerOrig2 linkto( level.Lunar1 );
    level.PlayerOrig3 = spawn( "script_model", level.Lunar1.origin + ( 50, 0, 10 ) );
    level.PlayerOrig3 linkto( level.Lunar1 );
    level.PlayerOrig4 = spawn( "script_model", level.Lunar1.origin + ( -50, 0, 10 ) );
    level.PlayerOrig4 linkto( level.Lunar1 );
    flag_wait( "electricity_on" );
    self setHintString( "Press &&1 To Use THE GOONMOBILE" );
    for(;;)
    {
        self waittill ("trigger",player);
        level.LunarInUse = true;
        self PlayerCheck(0,level.PlayerOrig0);
        self PlayerCheck(1,level.PlayerOrig2);
        self PlayerCheck(2,level.PlayerOrig3);
        self PlayerCheck(3,level.PlayerOrig4);
        self thread platform_effect();
        self thread platform_Sound();
        self setHintString( "THE GOONMOBILE IS IN USE" );
        level.Lunar1 moveto( ( 1528, -1128, 552 ), 3, .5 );
        level.Lunar1 vibrate((0,-100,0), 1.5, .4, 3);
        level.Lunar1 waittill( "movedone" );
        wait .2;
        level.Lunar1 moveto( ( 2824, 848, 480), 6 );
        level.Lunar1 waittill( "movedone" );
        wait .2;
        level.Lunar1 moveto( ( 3104, 864, 0 ), 3, 0, .5 );
        level.Lunar1 vibrate((0,-100,0), 1.5, .4, 2.5);
        level.Lunar1 waittill( "movedone" );
        self PlayerUnlink(0);
        self PlayerUnlink(1);
        self PlayerUnlink(2);
        self PlayerUnlink(3);
        self notify( "platform_arived" );
        self enable_trigger();
        level.LunarPosition = "Spawn";
        level.LunarInUse = false;
        wait .2;
        while(1)
        {
            self waittill ("trigger",player);
            level.LunarInUse = true;
            self PlayerCheck(0,level.PlayerOrig0);
            self PlayerCheck(1,level.PlayerOrig2);
            self PlayerCheck(2,level.PlayerOrig3);
            self PlayerCheck(3,level.PlayerOrig4);
            self thread platform_effect();
            self thread platform_Sound();
            self setHintString( "THE GOONMOBILE IS IN USE" );
            level.Lunar1 moveto( ( 2824, 848, 480 ), 3, .5 );
            level.Lunar1 vibrate((0,-100,0), 1.5, .4, 3);
            level.Lunar1 waittill( "movedone" );
            wait .2;
            level.Lunar1 moveto( ( 1528, -1128, 552 ), 6 );
            level.Lunar1 waittill( "movedone" );
            wait .2;
            level.Lunar1 moveto( ( 1536, -1128, 0  ), 3, 0, .5 );
            level.Lunar1 vibrate((0,-100,0), 1.5, .4, 2.5);
            level.Lunar1 waittill( "movedone" );
            self PlayerUnlink(0);
            self PlayerUnlink(1);
            self PlayerUnlink(2);
            self PlayerUnlink(3);
            self notify( "platform_arived" );
            self enable_trigger();
            level.LunarPosition = "Spawn";
            level.LunarInUse = false;
            wait .2;
            break;
        }
    }
}
broken avatar :(
×
broken avatar :(
Date Registered: 14 March 2012
Last active: 2142 days ago
Posts
105
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
i love zombies
×
ZMBS DON GOONY's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
ZMBS DON GOONY's Contact & Social LinksZMBS_DON_GOONY
thanks did this fix the lander goin from point b to point b or uyou just put the flag _wait in ?

i cant test right now due to my game needing reinstalled

 

Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Twitch
Loading ...