Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, LucasJoshua, 1 invisible), 555 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
relative c_trace position #167470
11/15/07 02:04
11/15/07 02:04
Joined: Sep 2007
Posts: 49
O
onslaught147 Offline OP
Newbie
onslaught147  Offline OP
Newbie
O

Joined: Sep 2007
Posts: 49
how do i sent a c_trace from my position to a position infront of the entity relative to the entities own x,y,z position, instead of the worlds x,y,z position. ty


The only thing in life you can depend on is death and taxes.
Re: relative c_trace position [Re: onslaught147] #167471
11/15/07 08:14
11/15/07 08:14
Joined: Jan 2007
Posts: 221
F
Fenriswolf Offline
Member
Fenriswolf  Offline
Member
F

Joined: Jan 2007
Posts: 221
You can do something like this:

// this code will trace 500 units ahead
vec_set(temp, vector(500,0,0));
vec_rotate(temp, my.pan);
vec_add(temp, my.x);
c_trace(my.x, temp, IGNORE_ME|IGNORE_PASSABLE);

Re: relative c_trace position [Re: onslaught147] #167472
11/15/07 08:23
11/15/07 08:23
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
aw yah today i maked the sniped i always wanted

here it is

Code:


var ent1;
you = ent_create(bp_mdl,nullvector,null);
ent1 = you;


while(my!=null)
{

vec_for_angle(temp,camera.pan);
vec_scale(temp,100);
vec_add(temp,camera.x);
you = ent1;
vec_set(you.x,temp);
//enz.




"empty"
Re: relative c_trace position [Re: flits] #167473
11/16/07 03:37
11/16/07 03:37
Joined: Sep 2007
Posts: 49
O
onslaught147 Offline OP
Newbie
onslaught147  Offline OP
Newbie
O

Joined: Sep 2007
Posts: 49
thnx fenrisworlf wat u said worked perfectly


The only thing in life you can depend on is death and taxes.

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1