Gamestudio Links
Zorro Links
Newest Posts
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
2 registered members (vicknick, AndrewAMD), 1,292 guests, and 3 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
how to get bone handle? #218876
07/31/08 07:52
07/31/08 07:52
Joined: Jun 2008
Posts: 31
Moscow, Russia
L
LunaticX Offline OP
Newbie
LunaticX  Offline OP
Newbie
L

Joined: Jun 2008
Posts: 31
Moscow, Russia
how can i get handle for bone that does not have any vertex?

Re: how to get bone handle? [Re: LunaticX] #219005
07/31/08 16:50
07/31/08 16:50
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
vec_for_bone(VECTOR*,ENTITY*,STRING*);
ang_for_bone(ANGLE*,ENTITY*,STRING*);


"empty"
Re: how to get bone handle? [Re: flits] #219133
08/01/08 07:42
08/01/08 07:42
Joined: Jun 2008
Posts: 31
Moscow, Russia
L
LunaticX Offline OP
Newbie
LunaticX  Offline OP
Newbie
L

Joined: Jun 2008
Posts: 31
Moscow, Russia
i mean like getting bone handle with ent_bonename(ENTITY*,STRING*,var num) but without vertex number.
is there any function like this or something that can be used?

Re: how to get bone handle? [Re: LunaticX] #219244
08/01/08 16:07
08/01/08 16:07
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
ent_bonename doesnt doesnt return a handle, just the STRING* name of the bone.
Bones have no handle as such, you access them by Entity & BoneName as Flits as shown. The string name of the bone is the closest you'll get to a handle.

Give us a better idea of what you need the "handle" for, and we'll try to
figure a way to get to want you want to do.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: how to get bone handle? [Re: EvilSOB] #219366
08/02/08 11:47
08/02/08 11:47
Joined: Jun 2008
Posts: 31
Moscow, Russia
L
LunaticX Offline OP
Newbie
LunaticX  Offline OP
Newbie
L

Joined: Jun 2008
Posts: 31
Moscow, Russia
from the manual:
....
ent_bonename(ENTITY*,STRING*,var num)
Gets the name or handle of a bone that controls the vertex with the given number.

Parameters:
ENTITY* entity pointer
STRING* string to be set to the bone name, A7.08 or NULL for returning the bone handle
num number of a vertex attached to the bone.

Returns:
Bone handle if the bone was found, otherwise 0.
....

i want to use them because handles work faster than bone names

Re: how to get bone handle? [Re: LunaticX] #219408
08/02/08 14:44
08/02/08 14:44
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
maybe, use ent_boneparent for getting the whole bone tree?



Re: how to get bone handle? [Re: LunaticX] #219410
08/02/08 14:47
08/02/08 14:47
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
blushAha - A7.08, and Im only 7.05 and it doesnt work that
way back here.

Sorry, I cant help.

Best of luck smile


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: how to get bone handle? [Re: EvilSOB] #219468
08/02/08 18:14
08/02/08 18:14
Joined: Jun 2008
Posts: 31
Moscow, Russia
L
LunaticX Offline OP
Newbie
LunaticX  Offline OP
Newbie
L

Joined: Jun 2008
Posts: 31
Moscow, Russia
Thank you Spirit, this is exactly what i was looking for.


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