Jukki
Joined: 07 Apr 2010 Posts: 19
|
Posted: Sat Aug 14, 2010 9:12 pm Post subject: sry for bugging you guys |
|
|
hi againg. i need help aging. This have been bugging me sometimes. i have entity mysery box and i want it to after use do sumthing here is my current state of code
void() mystery_buy =
{
if (other.classname != "player" && other.classname != "bot")
return;
other.buybox_time = time + 1;
};
void() usebox =
{
// THIS IS WHAT I NEED i know that self. blaah wont work beacause it would be for player not mystery box. and btw this function is caled else where if buybox time is bigger than time
void () mystery_box =
{
self.solid=SOLID_BBOX;
self.classname = "mystery";
setmodel (self, "progs/mystery.mdl");
precache_model ("progs/mystery.mdl");
setorigin(self, self.origin);
self.touch = mystery_buy;
};
coment explains what i need to know thx for help |
|