Hi!
I'm making a COG where when I enter a room, alot of objects are created in a row. Now, I've put together a little loop that will do that, only I'm not sure about the math or how to gonvert it into vectors...
temp0[j]=CreateThingAtPos(object,GetThingSector(origin),VectorAdd(GetThingPos(origin),(dir*distance)*j),GetThingLVec(origin));
Temp0-100: wish to catch the object so I can take it away when I leave.
Origin: Center point thing.
dir: A vector indicating in which way the row will be created.
distance: A flex that indicates how big the object is and how far apart the centers should be from each other.
j: An int that is in the loop.
for(j=0; j<amount of object in a row; j=j+1)
I think you see what I want. How to make the flex and ints become vectors so I can add?
/Edward
I'm making a COG where when I enter a room, alot of objects are created in a row. Now, I've put together a little loop that will do that, only I'm not sure about the math or how to gonvert it into vectors...
temp0[j]=CreateThingAtPos(object,GetThingSector(origin),VectorAdd(GetThingPos(origin),(dir*distance)*j),GetThingLVec(origin));
Temp0-100: wish to catch the object so I can take it away when I leave.
Origin: Center point thing.
dir: A vector indicating in which way the row will be created.
distance: A flex that indicates how big the object is and how far apart the centers should be from each other.
j: An int that is in the loop.
for(j=0; j<amount of object in a row; j=j+1)
I think you see what I want. How to make the flex and ints become vectors so I can add?
/Edward