Raised This Month: $ Target: $400
 0% 

entity spawning


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-26-2006 , 16:13   entity spawning
Reply With Quote #1

Code:
entity_playing[id] = create_entity("info_target") entity_set_string(entity_playing[id],EV_SZ_classname,"ghw_playback_ent") entity_set_string(entity_playing[id],EV_SZ_model,"models/player/terror/terror.mdl") entity_set_vector(entity_playing[id],EV_VEC_origin,origin) entity_set_int(entity_playing[id],EV_INT_solid,SOLID_BBOX) entity_set_int(entity_playing[id],EV_INT_movetype,MOVETYPE_FLY) entity_set_edict(entity_playing[id],EV_ENT_owner,33) entity_set_float(entity_playing[id],EV_FL_framerate,1.0) entity_set_int(entity_playing[id],EV_INT_sequence,0) entity_set_size(entity_playing[id],minsize,maxsize)
Exactly like that, model is precached, origin is defined correctly. The entity will spawn, u will not be able to see it (model not set / appears invisible). You can run into the ent (minsize and maxsize are set exactly same size as a player) but if you look at the entity, my server crasher . Nothing in logs.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
 



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 20:15.


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