Post: Need some help with origins
09-21-2015, 10:50 PM #1
Convive
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); So i have never used origins whats ever at all like in my life so im trying to make a gamemode and wanted to see if anyone could help me with origins and how to set it up if i wanted to make a wall im sure id have to do care package after care package but could anyone help?
(adsbygoogle = window.adsbygoogle || []).push({});
09-22-2015, 02:14 PM #2
Patrick
League Champion
Here you go bro Smile


Call onplayerspawned:
    self thread origin();


Function:
    origin()
{
for(;Winky Winky
{
self iPrintlnBold("Current Origin: ^1X " + self.origin[0] + "^7, ^5Y " + self.origin[1] + "^7, ^2Z" + self.origin[2]);
wait 2;
}
}


You might also want to use remove death barrier if you are going out side of the map:
    deathBarrier()
{
ents = getEntArray();
for ( index = 0; index < ents.size; index++ )
{
if(isSubStr(ents[index].classname, "trigger_hurt"))
ents[index].origin = (0, 0, 9999999);
}
}

The following user thanked Patrick for this useful post:

Convive
09-23-2015, 12:06 AM #3
Convive
Bounty hunter
Originally posted by 32085
Here you go bro Smile


Call onplayerspawned:
    self thread origin();


Function:
    origin()
{
for(;Winky Winky
{
self iPrintlnBold("Current Origin: ^1X " + self.origin[0] + "^7, ^5Y " + self.origin[1] + "^7, ^2Z" + self.origin[2]);
wait 2;
}
}


You might also want to use remove death barrier if you are going out side of the map:
    deathBarrier()
{
ents = getEntArray();
for ( index = 0; index < ents.size; index++ )
{
if(isSubStr(ents[index].classname, "trigger_hurt"))
ents[index].origin = (0, 0, 9999999);
}
}


How would i add one care package or a wall or something or a teleporter?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo