When ever I set up an object, it naturally wants to move itself to the origin ( 0,0,0). I gave the level its collision, positioned my object, made it an entity and then in the game the object spawns then moves and finds a way to get to the origin! this is rather annoying considering all i want is for the object to stay stationary and then when that question is answered the object moves to another space....
Here is what I have.... ( just dealing with the object )
AI Start
AI set radius 4.5
.
.
BallofLight() : `this is the object... its a sphere and the light is always positioned on it
.
AI complete obstacles
.
.
DO
if keystate(30)=1
AI Entity Go to Position 1,object position x(22) + 5,object position z(22)
endif
.
.
.
AI Update
Sync
Loop
.
.
.
.
.
.
Function BallofLight()
make light 1
set spot light 1,20,120
make object sphere 1,5
set object effect 1,2
color light 1,rgb(255,255,0)
AI Add Friendly 1
AI Set Entity Speed 1,60.0
position object 1,object position x(20) + 5,object position y(20) + 40,object position z(20)
EndFunction
Also: Does anyone know how to update the static obstacles, I am trying to make a box with the collision move so then the object can pass by, kind of like a door... but when i move the box, the static obstacle's collision is still in the same place and my object cannot move