|
Author
|
Message
|
|
Junior Member
|

07-01-2007
, 18:35
Size of Model
|
#1
|
I am somewhat of a noob to amxx but definately a noob to custom models and how to spawn them. Now i have followed the tutorial on how to spawn a car in front of myself and simply replaced the car with my model but i cannot seem to change the size of it. I changed the floats in entity_set_size, i resized it in my 3d program before compiling, i changed the $scale in the qc file but it is still huge. How can i get it smaller?
[PHP]
#include <amxmodx>
#include <amxmisc>
#include <engine>
new g_Classname[] = "sword"
new g_Model[] = "models/sword.mdl"
public plugin_init()
{
register_plugin("Sword Test","MeNtAL","0.01")
register_clcmd("say sword","sword")
}
public plugin_precache()
precache_model(g_Model)
public sword(id)
{
new Ent = create_entity("info_target")
entity_set_string(Ent,EV_SZ_classname,g_Class name)
entity_set_model(Ent,g_Model)
entity_set_int(Ent,EV_INT_solid,SOLID_TRIGGER )
entity_set_size(Ent,Float:{0.0,0.0,0.0},Float :{1.0,1.0,1.0})
entity_set_edict(Ent,EV_ENT_owner,id)
}
[PHP]
|
|
|
|