Inside3D!
     

sry for bugging you guys

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
Jukki



Joined: 07 Apr 2010
Posts: 19

PostPosted: Sat Aug 14, 2010 9:12 pm    Post subject: sry for bugging you guys Reply with quote

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
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group