Raised This Month: $ Target: $400
 0% 

Spawning an Ent/Model at a XYZ Location


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GrimReaperCdn
Member
Join Date: Jul 2007
Location: Steamboat, Colorado
Old 07-17-2007 , 22:29   Re: Spawning an Ent/Model at a XYZ Location
Reply With Quote #1

Excuse me if i understood you wrong but i think you must specify an 'X', 'Y', and 'Z' everytime you spawn one. Im just not sure if understand your question.
__________________
HARRR!
GrimReaperCdn is offline
Send a message via AIM to GrimReaperCdn Send a message via MSN to GrimReaperCdn
stupok
Veteran Member
Join Date: Feb 2006
Old 07-17-2007 , 23:26   Re: Spawning an Ent/Model at a XYZ Location
Reply With Quote #2

Here's a start:

PHP Code:
//...

public create_entity(Float:origin[3])
{        
    new 
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"))

    if(!
pev_valid(ent)) return 0

    engfunc
(EngFunc_SetModelent"models\chick.mdl")
    
engfunc(EngFunc_SetOriginentorigin)

    return 
ent
}

//... 
stupok 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:29.


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