Raised This Month: $51 Target: $400
 12% 

search all entities and eliminate them


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Toallin
Junior Member
Join Date: Jun 2014
Old 09-20-2017 , 15:15   search all entities and eliminate them
Reply With Quote #1

this is my way of creating entities, I want to eliminate them all at the end of the round


PHP Code:
new const NameEntBox[] = "Box"
new const w_mdl_box[] = "ubication"

public CreateBox(iOrigin[3])
{    
    new 
ent create_entity("info_target")
    
    new 
Float:OriginF[3]
    
IVecFVec(iOriginOriginF)
    
entity_set_vector(entEV_VEC_originOriginF)
    
    
entity_set_string(entEV_SZ_classnameNameEntBox)
    
entity_set_model(entw_mdl_box)
    
    new 
Float:mins[3] = { -2.5, -10.0, -0.0 }
    new 
Float:maxs[3] = { 2.510.08.0 }
    
entity_set_size(entminsmaxs)
    
    
entity_set_int(entEV_INT_solidSOLID_TRIGGER)
    
entity_set_int(entEV_INT_movetypeMOVETYPE_NONE)
    
    
drop_to_floor(ent)

Toallin is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 09-20-2017 , 15:31   Re: search all entities and eliminate them
Reply With Quote #2

There's a stock for that inside engine.inc
Code:
remove_entity_name(NameEntBox)
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Toallin
Junior Member
Join Date: Jun 2014
Old 09-20-2017 , 15:58   Re: search all entities and eliminate them
Reply With Quote #3

thanks, that function I solve it

Last edited by Toallin; 09-20-2017 at 15:58.
Toallin 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 21:20.


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