Raised This Month: $ Target: $400
 0% 

sum nice code for creating solid entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 10-21-2010 , 11:53   sum nice code for creating solid entity
Reply With Quote #1

Please show some code to create a solid entity based off coordnates. Something easy to use if you have boundary points.
__________________
Voi is offline
Old 10-21-2010, 14:07
Destro-
This message has been deleted by Destro-. Reason: Bug
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 10-21-2010 , 14:18   Re: sum nice code for creating solid entity
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <engine>
 
new g_Model[] = "models/player/gign/gign.mdl"
 
public plugin_init()
  
register_clcmd("say /test""create_ent")
 
public 
plugin_precache()
 
precache_model(g_Model)

public 
create_ent(id){
  new 
Float:origin[3]
 
entity_get_vector(idEV_VEC_originorigin)
 
//Player aside the origin of the entity
 
origin[1] += 50.0
 origin
[2] += 50.0 
 
  
new Ent create_entity("info_target")

  
entity_set_origin(Entorigin)

  
entity_set_string(EntEV_SZ_classname"ent_name")
  
entity_set_model(Entg_Model
  
entity_set_int(EntEV_INT_solid2)
  
entity_set_size(EntFloat:{-16.0, -16.0, -16.0}, Float:{16.016.016.0})
  
entity_set_float(EntEV_FL_animtime2.0)
  
entity_set_float(EntEV_FL_framerate1.0)

__________________
Destro- 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:17.


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