Posted By: Carlos3DGS
detect my entity model - 05/12/10 15:21
is there any instruction to get the name of the model of an entity?
something like:
Is there any instruction that does something like that?
What_Model_Does_This_Entity_Have(ENTITY*);
something like:
Quote:
action Car_Action()
{
STRING Model_Name;
Model_Name = What_Model_Does_This_Ent_Have(me);
if(Model_Name == "Car25.mdl")
{
do something...
}
}
void main()
{
ent_create("Car25.mdl",nullvector,Car_Action);
}
{
STRING Model_Name;
Model_Name = What_Model_Does_This_Ent_Have(me);
if(Model_Name == "Car25.mdl")
{
do something...
}
}
void main()
{
ent_create("Car25.mdl",nullvector,Car_Action);
}
Is there any instruction that does something like that?
What_Model_Does_This_Entity_Have(ENTITY*);