Hi guys
I am working on an Inventory-script.
I have a c_trace action that scans my world and say to the Engine. "Oh there is longsword be redy to pick it up an put it in the Inventory".
I did this with every Item I have actually!
But there is now a problem!
The script is damn big now!
my question is there a way to create defines for .mdl-modells?
I know its possible to create #define for Arrays and Var's!
like:
#define item_type skill16
#define none 0
#define item 1
#define weapon_type skill17
#define onehandweapon 0
#define twohandweapon 1
#define weapon_kind skill18
#define knife 0
#define sword 1
#define twohandsword 2
#define bow 3
#define crossbow 4
But I want a #define for Strings like "longsword.mdl"
something like this:
#define realtime_modell *.mdl
action longsword()
{
set (my,SHADOW|POLYGON);
my.material=sword_material;
my.item_type=weapon;
my.weapon_type=onehandweapon;
my.weapon_kind=sword;
my.weapon_state=100;
my.realtime_modell="longsword.mdl";
my.inventar_ico="item_ls_simple.mdl";
}
I hope anyone could help me!
best regards
Basti