0 registered members (),
16,302
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: ent_create(..., ..., function(a, b, c)); possible?
[Re: pararealist]
#312107
02/23/10 10:35
02/23/10 10:35
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
Expert
|
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
OR maybe this (untested)
ENTITY* create_scaled_entity( var Scale, STRING* model)
{
ENTITY* tempEnt = ent_create(model, nullvector, NULL);
if(tempEnt != NULL)
{
//scale all axis the same
tempEnt.scale_x = Scale;
tempEnt.scale_y = Scale;
tempEnt.scale_z = Scale;
//
return tempEnt;
}
return NULL;
}
Doesnt make alot of sense to return NULL there, return the entity instead then, otherwise you might be right, this would be a better function  regards,
|
|
|
Entire Thread
|
ent_create(..., ..., function(a, b, c)); possible?
|
SomebodyNew
|
02/23/10 09:42
|
Re: ent_create(..., ..., function(a, b, c)); possible?
|
Helghast
|
02/23/10 09:45
|
Re: ent_create(..., ..., function(a, b, c)); possible?
|
pararealist
|
02/23/10 10:07
|
Re: ent_create(..., ..., function(a, b, c)); possible?
|
hopfel
|
02/23/10 10:24
|
Re: ent_create(..., ..., function(a, b, c)); possible?
|
Helghast
|
02/23/10 10:35
|
Re: ent_create(..., ..., function(a, b, c)); possible?
|
pararealist
|
02/23/10 10:53
|
Re: ent_create(..., ..., function(a, b, c)); possible?
|
Gordon
|
02/23/10 11:34
|
Re: ent_create(..., ..., function(a, b, c)); possible?
|
Aku_Aku
|
02/23/10 19:55
|
Re: ent_create(..., ..., function(a, b, c)); possible?
|
Gordon
|
02/25/10 03:54
|
Re: ent_create(..., ..., function(a, b, c)); possible?
|
badapple
|
02/25/10 04:37
|
Re: ent_create(..., ..., function(a, b, c)); possible?
|
pararealist
|
02/25/10 04:58
|
|
|