Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 6,962 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
attaching more than one action to a model ?? #214279
07/03/08 19:32
07/03/08 19:32
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
Hi

This is probably a dumb question but I can't see how to attatch several different actions to a model within WED ?

Also, how are actions attatched to a model without using WED ?


Thank you



Last edited by dracula; 07/03/08 19:34.
Re: attaching more than one action to a model ?? [Re: dracula] #214280
07/03/08 19:44
07/03/08 19:44
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
you can't attach more than one action to a model.

To attach an action to a model without using WED, you can use
ent_create(STRING* filename, VECTOR* position, function); and you give the function parameter the function you want the model to have.

This is the only way i know to attach an action/function to an entity without assigning it in WED.

Re: attaching more than one action to a model ?? [Re: DJBMASTER] #214284
07/03/08 19:48
07/03/08 19:48
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
Ok, the penny has just dropped. You add one action and that contains if else statements for all the other "sub-actions" So if I wanted to use different keys for my models movement, I would use if key_n, if key_m etc for the various animation cycles ?

Is this correct ?

Thanks

Last edited by dracula; 07/03/08 19:53.
Re: attaching more than one action to a model ?? [Re: dracula] #214285
07/03/08 20:07
07/03/08 20:07
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
that's one of the million possibilities but right in principle.

Re: attaching more than one action to a model ?? [Re: Joey] #214316
07/04/08 03:57
07/04/08 03:57
Joined: Dec 2005
Posts: 116
T
tD_Datura_v Offline
Member
tD_Datura_v  Offline
Member
T

Joined: Dec 2005
Posts: 116
Right.
That doesn't mean:
1. define a file format for model to function
2. load function name for model name from file
3. grab function by name
4. create entity and assign

or
*use array function pointers in any way

or
*...

The user is only allowed to use if-else / switch-case stacking in that instance.
If the user attempts any other coded route (heresy), the user risks immediate digestion by infinity gremlins.

Also, any user which suggests or even implies that there are not one million possibilities for that instance, will do so at the risk of a penalty so severe it cannot be mentioned in polite forum conversation.

Quote:
You add one action and that contains if else statements for all the other "sub-actions" So if I wanted to use different keys for my models movement, I would use if key_n, if key_m etc for the various animation cycles ?

Is this correct ?

Yes, and NO.


Re: attaching more than one action to a model ?? [Re: tD_Datura_v] #214369
07/04/08 10:43
07/04/08 10:43
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
why does tD_Datura_v alias testDummy have multiple accounts? sorry if i'm mistaken here, but you're writing like him.


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