Raised This Month: $ Target: $400
 0% 

new entity and new entity classname. ( totally new entity, created by valvehammer )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hyper Nova
BANNED
Join Date: May 2012
Old 05-24-2012 , 11:27   Re: new entity and new entity classname. ( totally new entity, created by valvehammer
Reply With Quote #1

pfn_spawn(entid)

this function get called when my costom classname entity is in game.
2 function "pfn_keyvalue" get called when entity is gone already.


Now i have function and i can get all entity data what i need but this is not enough.
I need to keep this entity in game somehow.


I tried to change class name to trigger_teleport ( so mayby engine think that is right entity and will keep it ) and then later change back to correct name..
no, it still delete this.

Seems like entity date of death is made yet earlier or mayby on this function (function when entity spawn is called) but the pfn_spawn(entid) will be too late.

I think there are variable for each entity, and if classname is wrong then variable will be true and then come funeral...

So, is there any hope to save my sweet entity?
mayby block this remove_entity thing or something?


Edit: i am so close to solve this entity problem, please someone share your knowledge i really need this.


Edit2: My bad, entity get never spawned and function never called for this entity just little mistake.
Now i lost all my hope.

Last edited by Hyper Nova; 05-24-2012 at 12:48.
Hyper Nova is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode