Raised This Month: $ Target: $400
 0% 

Size of Model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MeNtAL MaNiAC
Junior Member
Join Date: Nov 2006
Old 07-01-2007 , 18:35   Size of Model
Reply With Quote #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]
MeNtAL MaNiAC 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 21:31.


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