0 registered members (),
18,561
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: ent_create(..., ..., function(a, b, c)); possible?
[Re: SomebodyNew]
#312100
02/23/10 09:45
02/23/10 09:45
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
Expert
|
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
try this instead:
// The basic includes
#include <acknex.h>
#include <default.c>
// List of functions
function create_scaled_entity(ENTITY* Ent, var X_Scale, var Y_Scale);
function main();
function create_scaled_entity(ENTITY* Ent, var X_Scale, var Y_Scale)
{
Ent.scale_x = X_Scale;
Ent.scale_y = Y_Scale;
}
function main()
{
level_load(NULL);
camera.tilt= -90;
camera.z = 3000;
ENTITY* tempEnt = ent_create("Test.mdl", nullvector, NULL);
create_scaled_entity(tempEnt, 5, 5)
}
Untested, but you get the idea  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
|
|
|