Raised This Month: $ Target: $400
 0% 

Destorying an ent?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 04-30-2005 , 22:08   Destorying an ent?
Reply With Quote #1

How would i destory an ent. I've tried making it take damage, then settings its hp to -100.

I dont want you to tell me remove_entity because perminatly destorys it
DiscoBBQ is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 05-01-2005 , 12:10  
Reply With Quote #2

How can you destroy an entity without destroying it? WHAT?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 05-01-2005 , 12:34  
Reply With Quote #3

Hint the world perminatly. I want it to be destoryed, but when you remove_entity its gone perminatly and dosn't respawn
DiscoBBQ is offline
Ced
Member
Join Date: Oct 2004
Old 05-01-2005 , 13:08  
Reply With Quote #4

why don't u just remove and put back on next round?
Ced is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 05-01-2005 , 16:53  
Reply With Quote #5

Becuase it's for TS and there are no 'rounds'
DiscoBBQ is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 05-01-2005 , 18:43  
Reply With Quote #6

Then when you remove it, just make it like this:

Code:
#define RESPAWN_TIME how_much_time_in_float_here public destroy_entity(id) { // do the remove_entity stuff here by yourself set_task( RESPAWN_TIME, "respawn", id) return WHATEVER } public respawn(id) { //do the entity creation here by yourself return WHATEVER }

If your thing is non-id, just use read_data thingy to acquire stuff...
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 05-01-2005 , 18:48  
Reply With Quote #7

Quote:
//do the entity creation here by yourself
i'm guessing theres a command for that?
DiscoBBQ is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 05-01-2005 , 18:49  
Reply With Quote #8

erm...

Code:
new entity = create_entity("info_target")
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 05-01-2005 , 18:49  
Reply With Quote #9

Damn your fast, It's not a specific ent. It's a c4 that blows up windows and doors, so i want it to respawn after being removed. I'm pretty sure there's a command to set the classname to something, then i can respawn it.
DiscoBBQ is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 05-01-2005 , 18:50  
Reply With Quote #10

Yep ^^
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
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 16:36.


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