|
|
Cscript question????
#268660
05/30/09 14:10
05/30/09 14:10
|
Joined: May 2009
Posts: 11 Romania, Targu Mures
F_P_kefas
OP
Newbie
|
OP
Newbie
Joined: May 2009
Posts: 11
Romania, Targu Mures
|
Can I use a string type for refernce to an entity function?
Ex:
str block_str; .... ....
action block_1{ .....}
str_cpy(block_str,"block_1"); ent_create (wall_1,vector(100,0,0), block_str);
Or someone knows a better way to use the same ent_create function whit different entity action??
hello
|
|
|
Re: Cscript question????
[Re: Tobias]
#268828
05/31/09 10:44
05/31/09 10:44
|
Joined: May 2009
Posts: 11 Romania, Targu Mures
F_P_kefas
OP
Newbie
|
OP
Newbie
Joined: May 2009
Posts: 11
Romania, Targu Mures
|
Thanks.
I tought so, based on the experiments. Each ent_create needs to have separate action(if you want the entitys to do different actions).
I was just wondering how to turn a string to a function name.
hello
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|