1 registered members (TipmyPip),
18,633
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: How do you properly use ent_create command?
[Re: JoeMama]
#79258
06/25/06 03:47
06/25/06 03:47
|
Joined: Feb 2005
Posts: 3,687 Hessen, Germany
Tempelbauer
Expert
|
Expert
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
|
you can“t assign parameters by the on_-commands! you have to write a function, who calls the ent_create: Code:
function create_something() { ent_create (KT.mdl, 0,0,0, troop.wdl); }
on_h = create_something();
|
|
|
Re: How do you properly use ent_create command?
[Re: Tempelbauer]
#79259
06/25/06 07:11
06/25/06 07:11
|
Joined: Jul 2002
Posts: 4,436 Germany, Luebeck
Xarthor
Expert
|
Expert
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
|
well not quite correct the code, you gotta write the vector either into a vector(x,y,z) or, caus you're creating at 0,0,0 the nullvector should work too, not certain though. Oh and by the way you can only assign ACTIONS to entitys not the whole .wdl file !! Code:
function create_something() { ent_create("KT.mdl",vector(0,0,0),troop_act); }
on_h = create_something;
|
|
|
Re: How do you properly use ent_create command?
[Re: Xarthor]
#79260
06/25/06 09:00
06/25/06 09:00
|
Joined: Jun 2006
Posts: 86 Asia
xboy360
Junior Member
|
Junior Member
Joined: Jun 2006
Posts: 86
Asia
|
wow! now this i can use! thanks all!
now that last parameter,the troop_act, that would be the action of the created entity right?? oke.. I saw that tech demo of a6, and on that dynamic lights room, there were these 2 girls who takes turns catching a ball. how did they do that?? I am trying to make a basketball game
Happy Birthday!
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|