Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 04/03/26 16:57
TMFs on options in live trading
by Spirit. 03/26/26 19:52
TDAmeritrade plugin with new Schwab accountt?
by AndrewAMD. 03/24/26 17:11
Black Book, 4th edition
by jcl. 03/17/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 3,483 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
ondrej, mredit, vestriaa, Lukudo, mldenoiser
19205 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 | 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