Raised This Month: $ Target: $400
 0% 

recreating an entity?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-10-2010 , 03:32   Re: recreating an entity?
Reply With Quote #2

You should think about which module you'd use. Using both fakemeta and engine is bad.

like this:

PHP Code:


#include <engine>

new g_angles[3]
new 
g_origin[3]
new 
g_team_no

public when_to_delete_the_entity(entid)
{
    
entity_get_vector(entidEV_VEC_anglesg_angles)
    
entity_get_vector(entidEV_VEC_origing_origin)
    
g_team_no entity_get_int(entidEV_INT_team)
    
    
remove_entity(entid)
}


public 
sometime_spawn_entity()
{
    new 
ent create_entity("info_tfgoal")
    
    
// set the keys with entity_set_x

Backstabnoob is offline
 



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 07:11.


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