Quote:secondaryOffhandButtonPressed() //uhh, maybe 1?
Actually, its 4 by default.
(11-27-2010, 03:35)Deathmax Wrote: [ -> ] (11-26-2010, 17:28)Kriege203 Wrote: [ -> ]i want to set up only 1 killstreak
I'm not sure, never tried. Maybe replace the killstreaks you don't want with killstreak_null?
Try:
self.killstreak[0] = "killstreak_whatever";
self.killstreak[1] = "none";
self.killstreak[2] = "none";
If that doesn't work, try:
self.killstreak[0] = "killstreak_whatever";
self.killstreak[1] = undefined;
self.killstreak[2] = undefined;
we should create a full manegaed code list whit build functions Dvars and stuff ;pp not me!
the menu dont work. it says unkown function
(12-01-2010, 17:31)Kriege203 Wrote: [ -> ]the menu dont work. it says unkown function
Well I did say I directly ripped it from my mod without touching anything right?
The one that might be responsible might be deleteondeath.
C++ Code
deleteondeath(item)
{
self waittill("death");
item destroy();
}
Or the other functions over at selectItem().
This is probably the missing function:
You just need to append it with
common_scripts\utility:: or add this to the
.gsc:
Code:
waittill_any_return( string1, string2, string3, string4, string5, string6 )
{
if ((!IsDefined (string1) || string1 != "death") &&
(!IsDefined (string2) || string2 != "death") &&
(!IsDefined (string3) || string3 != "death") &&
(!IsDefined (string4) || string4 != "death") &&
(!IsDefined (string5) || string5 != "death") &&
(!IsDefined (string6) || string6 != "death"))
self endon ("death");
ent = SpawnStruct();
if (IsDefined (string1))
self thread waittill_string (string1, ent);
if (IsDefined (string2))
self thread waittill_string (string2, ent);
if (IsDefined (string3))
self thread waittill_string (string3, ent);
if (IsDefined (string4))
self thread waittill_string (string4, ent);
if (IsDefined (string5))
self thread waittill_string (string5, ent);
if (IsDefined (string6))
self thread waittill_string (string6, ent);
ent waittill ("returned", msg);
ent notify ("die");
return msg;
}