Raised This Month: $ Target: $400
 0% 

Spawning working entities in NS -solved


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Rorthic
Junior Member
Join Date: Apr 2005
Old 05-16-2005 , 00:28   Spawning working entities in NS -solved
Reply With Quote #1

i want to spawn a armory in ns that works, but i cant seem to get it right.

i have this

Code:
public cmdArmory(id) {     new ent     ent = create_entity("team_armory")     new Float:origin[3]         entity_set_model(ent,"models/b_armory.mdl")         entity_set_int(ent, EV_INT_movetype, 6)     entity_get_vector(id,EV_VEC_origin,origin);         entity_set_origin ( ent, origin )     origin[2] += 100.0 //moves player out of the way 2 is up     entity_set_origin(id,origin)         entity_set_int(ent, EV_INT_solid, 1)     //entity_set_float(ent,EV_FL_animtime,2.0)     //entity_set_float(ent,EV_FL_framerate,1.0)     //entity_set_int(ent,EV_INT_sequence,0);         return PLUGIN_HANDLED; }

it spawns it but it isnt solid and it dosent do anything but sit there. Any ideas?
Rorthic is offline
 


Thread Tools
Display Modes

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 16:48.


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