|
|
Re: Question about pointers
[Re: sweetpickles]
#118432
03/20/07 18:30
03/20/07 18:30
|
Joined: Aug 2005
Posts: 1,558 HK
vlau
Serious User
|
Serious User
Joined: Aug 2005
Posts: 1,558
HK
|
Quote:
So is an action essentially a behavior that you assign to an entity? For instance, I would write an action for "missiles" and an action for "mortars" and an action for "med-kits", etc. and then assign these actions to the appropriate entities?
Yes, otherwise the engine never know how to operate the entity.
Quote:
If that's the case, then when creating a missile entity spontaneously within the game (i.e. player fires a missile), would I use a pointer to assign an action to it or is that unnecessary?
You can assign a pointer and/or assign an action to it direcrtly by using ent_create(...) or in WED, as I said, the entity pointer can be used in other entity's action.
Quote:
Thanks for your patience, by the way.
I hope my explanation is clear and you'll get it.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|
|
|