Raised This Month: $ Target: $400
 0% 

adding model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-16-2012 , 12:19   Re: adding model
Reply With Quote #2

PHP Code:
static ent
ent 
create_entity("info_target")
if(
ent)
{
entity_set_string(ent,EV_SZ_classname,"entity_classname"// put your entity classname here...
entity_set_model(ent,"models/..."// put your entity model path here (you should precache it first)
 
entity_set_int(ent,EV_INT_solid,SOLID_NOT// don't make it solid
entity_set_int(ent,EV_INT_movetype,MOVETYPE_NONE// don't move
 
static Float:origin[3]
entity_get_vector(id,EV_VEC_origin,origin// get origin of the player
 
entity_set_vector(ent,EV_VEC_origin,origin// set player origin to entity

__________________
<VeCo> 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 00:27.


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