Post: GSC Loop Command Help!
08-28-2016, 07:04 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I am trying to loop a command and don't know exactly what to do!*
I also would like the loop to go though the command 3 times and at a speed of 7 seconds every loop!
If that is even possible than please let me know!

I'm working on a gamemode that should be awesome for everyone, so PLS REPLY

Thanks For Reading,

Thomas
(adsbygoogle = window.adsbygoogle || []).push({});
08-28-2016, 08:46 PM #11
Originally posted by Thomas
i also would like a code that would kill people if they fall down to a certain level!
Like a death barrier, but only at a certain point!
How should i go about coding that?

Thanks For Your Help Already! <3


This is what I would use.
    
customdeathbarrier()
{
for();
{
if (self.origin[2] == Yourdesiredhightvalue)
{
self suicide();
}
wait .05;
}
}
08-29-2016, 12:45 AM #12
Originally posted by Thomas
i also would like a code that would kill people if they fall down to a certain level!
Like a death barrier, but only at a certain point!
How should i go about coding that?

Thanks For Your Help Already! <3


where your original for(;Winky Winky was, use instead for (i = 0; i < 3; i ++)

code for killing player at certain level.


    KillPlayersBellowCertainPoint(zaxis)
{
for (;Winky Winky
{
foreach (player in level.players)
{
if (player.origin[2] < zaxis)
player Suicide();
}

wait 0.05;
}
}
08-29-2016, 04:48 AM #13
Kronos
Former Staff
Originally posted by Thomas
I am trying to loop a command and don't know exactly what to do!*
I also would like the loop to go though the command 3 times and at a speed of 7 seconds every loop!
If that is even possible than please let me know!

I'm working on a gamemode that should be awesome for everyone, so PLS REPLY

Thanks For Reading,

Thomas


Has your issue been resolved?
08-29-2016, 06:29 PM #14
Originally posted by Kronos View Post
Has your issue been resolved?


Yes, sir!
08-29-2016, 10:44 PM #15
Kronos
Former Staff
Okay good to hear Smile

Question Answered Thread closed.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo