Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Own Event System #412147
11/23/12 13:14
11/23/12 13:14
Joined: Nov 2011
Posts: 139
India
Yashas Offline OP
Member
Yashas  Offline OP
Member

Joined: Nov 2011
Posts: 139
India
I have some function that are written a configuration file(Events)
Ex:
1. OnPlayerInitilized
2. OnPlayerQuit

There are multiple plug in scripts where I would want to declare
OnPlayerInitilized expecting it to be executed along with the other declarations.

Is this possible??If not what else can I try to make an event system??

Thanks


Keep smiling laugh
http://translation.babylon.com/ - Translate many languages
Re: Own Event System [Re: Yashas] #412404
11/26/12 22:26
11/26/12 22:26
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I'm not sure if I understood you correctly but you could simply create one event function that calls the events of all your plug-ins, example:

void on_ent_remove_event(ENTITY *ent)
{
remove_ent_from_physics_system(ent);
remove_ent_from_pathfinding_system(ent);
...
}

...
on_ent_remove = on_ent_remove_event;


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

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