Raised This Month: $ Target: $400
 0% 

spawning ents properly


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
l4ulwtlln
Member
Join Date: Aug 2007
Old 10-20-2010 , 22:53   spawning ents properly
Reply With Quote #1

i was just wondering how you go about spawning ents into the world properly

something like this or do i need more?

Code:
    new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))     if (!pev_valid(ent)) return 0     set_pev(ent, pev_classname, "bananas")     set_pev(ent, pev_origin, origin)     engfunc(EngFunc_SetModel, ent, "models/banana.mdl")
l4ulwtlln is offline
Lulu the hero
Senior Member
Join Date: Oct 2009
Location: Budapest, Hungary
Old 10-21-2010 , 00:08   Re: spawning ents properly
Reply With Quote #2

Your version works, but you should add the DispatchSpawn(ent); line too under it.
Lulu the hero 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 10:18.


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