You are viewing our Forum Archives. To view or take place in current topics click here.
Did NOT know you could do this with origins haha
Posted:

Did NOT know you could do this with origins hahaPosted:

xSonic
  • TTG Senior
Status: Offline
Joined: Oct 11, 201014Year Member
Posts: 1,789
Reputation Power: 88
Status: Offline
Joined: Oct 11, 201014Year Member
Posts: 1,789
Reputation Power: 88
If you want to monitor a certain Origin then use this

self.origin[ 0, 1, 2 ]


0 = X Axis ( Ex. the bridge extended is the X axis Going from one side to another )
1 = Y Axis ( Ex. from the Mainframe to the Door "C - X"(The one by the catwalk ) )
2 = Z Axis( aka Height ) ( Ex. from the floor to the sky barrier )

Examples.


MoniterX()
{
   for(;;)
   {
      if( self.origin[0] > 1000 )
      {
         self iPrintln( "Your Origin[0] is Past 1000" );
      }
      wait .1;
   }
}
MoniterY()
{
   for(;;)
   {
      if( self.origin[1] > 1000 )
      {
         self iPrintln( "Your Origin[1] is Past 1000" );
      }
      wait .1;
   }
}
MoniterZ()
{
   for(;;)
   {
      if( self.origin[2] > 1000 )
      {
         self iPrintln( "Your Height is Past 1000" );
      }
      wait .1;
   }
}


Just thought i would share this :L
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.