Post: How Can I Add A Function To Remove The Sky Barrier?
08-24-2015, 01:41 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello, I use my private edit of RedDotCity by Exelo.

I like building massive staircases, but the skybarrier means that people in my lobbies can't use them.

I looked in the Nuketown Edit of Shark's Zombieland and found a function saying "Remove Sky Barrier"?

I added a Host Menu option: self add_option("SubMenu10", "Remove Sky Barrier", ::RemoveSkyBarrier);

And pasted the following code lower down in the script which I found in the Nuketown Edit:

RemoveSkyBarrier()
{
entArray = getEntArray();
for (index = 0; index < entArray.size; index++)
{
if(isSubStr(entArray[index].classname, "trigger_hurt") && entArray[index].origin[2] > 180)
entArray[index].origin = (0, 0, 9999999);
}
}

When I try and use it in the menu it doesn't work though, can anybody experienced help me out?:madsal:
(adsbygoogle = window.adsbygoogle || []).push({});
08-24-2015, 02:47 AM #11
Originally posted by 9658
.....


You must login or register to view this content.
08-24-2015, 02:50 AM #12
itsSorrow
In my man cave
Originally posted by Kaptai View Post
You must login or register to view this content.


like I said remove if(isdefined(barrier)) part...
08-24-2015, 02:51 AM #13
itsSorrow
In my man cave
    
hurt_triggers = getentarray( "trigger_hurt", "classname" );
foreach(barrier in hurt_triggers)
{
barrier.origin += (0, 0, 9999999);
}
08-24-2015, 02:51 AM #14
Originally posted by 9658
like I said remove if(isdefined(barrier)) part...


Can you explain what that part was doing?
08-24-2015, 02:54 AM #15
itsSorrow
In my man cave
Originally posted by Kaptai View Post
Can you explain what that part was doing?


its useless
08-24-2015, 02:57 AM #16
Originally posted by 9658
its useless


This what I have :'( But barrier is still there :'(

You must login or register to view this content.
08-24-2015, 03:14 AM #17
Anything?
08-24-2015, 03:21 AM #18
Originally posted by 9658
    
hurt_triggers = getentarray( "trigger_hurt", "classname" );
foreach(barrier in hurt_triggers)
{
barrier.origin += (0, 0, 9999999);
}


You must login or register to view this content.
08-24-2015, 03:23 AM #19
itsSorrow
In my man cave
Originally posted by Kaptai View Post
You must login or register to view this content.


it removed it for me

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo