Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Position

Daemon Speculaas
Gate Keeper
Join date: 2 Oct 2005
Posts: 14
03-13-2006 20:08
how would i make an object set its pos only on the x & y plane and not z

(i dontwant it to move up and down)
_____________________
Time dose not pass for the imortals.....
Leena Khan
Lasting Impressionist
Join date: 21 Apr 2004
Posts: 200
03-13-2006 20:34
Well.. you cant have llSetPos ignore an axis, but you can simulate it

vector target = <20,10,31>;
vector pos;

default
{
state_entry()
{
pos = llGetPos()
target.z = pos.z;
llSetPos(target);
}
}

Basicly, get the current z axis and assign it to the z axis of your target position.
_____________________
SL was down, and all I got was this stupid signature...
Daemon Speculaas
Gate Keeper
Join date: 2 Oct 2005
Posts: 14
03-14-2006 16:26
Thanks!
_____________________
Time dose not pass for the imortals.....