Gamestudio Links
Zorro Links
Newest Posts
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
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Accessing member variable question #161493
10/17/07 07:15
10/17/07 07:15
Joined: Aug 2007
Posts: 17
T
Torr Offline OP
Newbie
Torr  Offline OP
Newbie
T

Joined: Aug 2007
Posts: 17
These don't work, I get an Unknown parameter error:
vec_set(testvec, you.aiDumbBiped01_force_vec.x);
vec_set(testvec, you.aiDumbBiped01_force_vec);

This is ok, but not what I want:
vec_set(testvec, aiDumbBiped01_force_vec.x);

All the entities have the same Action. How can I get the aiDumbBiped01_force_vec vector from the you pointer?

Re: Accessing member variable question [Re: Torr] #161494
10/17/07 08:52
10/17/07 08:52
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline
User
demiGod  Offline
User

Joined: Mar 2006
Posts: 752
Portugal
define _Forcex, skill99;
define _Forcey, skill98;
define _Forcez, skill97;

vec_set (you._Forcex, aiDumbBiped01_force_vec.x);

vec_set (testvec.x, you._Forcex);

but this is just one way to do it..

Re: Accessing member variable question [Re: demiGod] #161495
10/17/07 11:42
10/17/07 11:42
Joined: Aug 2007
Posts: 17
T
Torr Offline OP
Newbie
Torr  Offline OP
Newbie
T

Joined: Aug 2007
Posts: 17
Thanks


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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