|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
[Re: MasterQ32]
#341377
09/15/10 16:56
09/15/10 16:56
|
Joined: Nov 2003
Posts: 433 The Netherlands
Toon
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2003
Posts: 433
The Netherlands
|
Thanks for reply but the canon keeps spinning real fast, i tried it with the function below to test and see what the targets where... none of the targets are moving so the canon should now face the closest target but it just spins like >
action act_boat()
{
VECTOR temp;
VECTOR testvec;
while(1)
{
if(!you)
{
c_scan(my.x,my.pan,vector(360,360,10000),SCAN_ENTS | SCAN_LIMIT | IGNORE_ME | IGNORE_FLAG2);
beep();
wait(-1);
}
else
{
if(key_del == 1)
{
beep();
ent_remove(you);
}
else
{
vec_set(temp.x, you.x);
vec_sub(temp.x, testvec.x);
vec_to_angle(testvec.x, temp.x);
ent_bonerotate(my, "canon", testvec);
}
}
wait(1);
}
}
|
|
|
Entire Thread
|
How to combine x,y,z,pan,tilt,roll in one element ?
|
Toon
|
09/15/10 15:19
|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
|
Helghast
|
09/15/10 16:04
|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
|
Saturnus
|
09/15/10 16:05
|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
|
MasterQ32
|
09/15/10 16:15
|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
|
Toon
|
09/15/10 16:56
|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
|
MrGuest
|
09/15/10 20:36
|
Re: How to combine x,y,z,pan,tilt,roll in one element ?
|
Toon
|
09/15/10 16:25
|
|
|