SolvedChange position

Posts 17 of 7 · Page 1 of 1
Change position
Hello guys,

I am trying to make something so that you change position at a specific moment.
I do know how to change someone's position with self SetOrigin(0,0,0);

But how for example, it saves your current origin and does for example +1 to 1 of the 3 numbers?

For example:
From origin(0,0,0) to (0,0,1).
And then (0,0,2).

Hopefully I explained it good enough.

Thanks in advance!
Somthing like this?: Just a quick code.
Code:
GetOrg()
{
x = randomIntRange(-75, 75);
for(;;){
self.neworiginspawn = (2571+x,21,120);
self setOrigin(self.neworiginspawn);


}

}
No, it's like.
It picks your current position and add each 0.05 second +1 to the X
Quote Originally Posted by masterfun View Post
No, it's like.
It picks your current position and add each 0.05 second +1 to the X
Code:
PutOrigin()
{
self endon("death");
self endon("disconnect");

for(;;)
{
self setorigin(self.origin + (1, 0, 0);
wait 0.05;
}
}
Ah know I get it what u meant xD
Posts 17 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?