Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by madpower2000. 07/22/26 14:01
ZorroGPT
by TipmyPip. 07/21/26 17:54
New Zorro version 3.11
by jcl. 07/21/26 13:42
Lapsa's very own thread
by Lapsa. 07/18/26 13:40
Purchase A8 full licence version
by ukgamer. 07/17/26 05:52
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (NorbertSz, 1 invisible), 4,557 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Are you doing secret stuff with unassigned eflags flags? [Re: FBL] #349155
12/04/10 13:18
12/04/10 13:18
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
An on_ent_create event would be cool, too.

Last edited by HeelX; 12/04/10 13:19.
Re: Are you doing secret stuff with unassigned eflags flags? [Re: HeelX] #349157
12/04/10 13:20
12/04/10 13:20
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Well you also have to set the on_create_event somewhere, so you need some special function anyway. So why not create the entity from this function and then do all the init stuff there? The attached function (when calling ent_create) is then left for user stuff.

Re: Are you doing secret stuff with unassigned eflags flags? [Re: FBL] #349158
12/04/10 13:22
12/04/10 13:22
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
No, I don't want this.

Re: Are you doing secret stuff with unassigned eflags flags? [Re: HeelX] #349160
12/04/10 13:24
12/04/10 13:24
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
But you need to set the event function somewhere (if this was possible).

Then code your function like it was an event and call it from your routine where you do ent_create. That equals to some sort of on_create_event.

I've been at that point and at the end I figured that some on_create_event does not make sense.

Re: Are you doing secret stuff with unassigned eflags flags? [Re: FBL] #349251
12/05/10 12:43
12/05/10 12:43
Joined: Jul 2008
Posts: 894
T
TechMuc Offline
User
TechMuc  Offline
User
T

Joined: Jul 2008
Posts: 894
macros are evil.. defining macros for engine functions is super duper super evil.. laugh

ps: for an on_ent_create function.. I'm not too sure if it will work, but you could get the last object in the linked-list ( see ENTITY struct, C_LINK next). If this object has one or more follower after a frame, these objects probably have been created (I'm pretty sure the engine always inserts elements at the end.. at least this would make sense and you could give it a try).
You could accomplish the same behaviour for on_ptr_remove.

Re: Are you doing secret stuff with unassigned eflags flags? [Re: TechMuc] #349255
12/05/10 13:03
12/05/10 13:03
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
I'll give it a try. Putted it on my todo-list for a future version. Conitec time FTW! smile

Page 2 of 2 1 2

Moderated by  old_bill, Tobias 

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