Inside3D!
     

Load value from qc?

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming
View previous topic :: View next topic  
Author Message
Stealth Kill



Joined: 29 Dec 2006
Posts: 83

PostPosted: Tue Jun 17, 2008 10:49 pm    Post subject: Load value from qc? Reply with quote

How can i draw something when value changes in qc?
i tried this

int blabla;
void SCR_Drawblabla (void)

{



if (blabla == 2)
{
Draw_Fill (-60, 200, 200, 2, 110);
}
else if (blabla == 3)
{
Draw_Fill (60, 200,300, 2, 200);
}


and i added this to
SCR_UPdateScreen

SCR_Drawblabla ();


if blabla == 0
draws it but when blabla changes to 1 itīs the same graphic of blabla 0 lol
Back to top
View user's profile Send private message
IceDagger



Joined: 19 Nov 2004
Posts: 20

PostPosted: Wed Jun 18, 2008 12:23 am    Post subject: Reply with quote

Hmm...

You could try creating a new cvar and registering it. You could then access it via quakec and just check its value in the engine.
Back to top
View user's profile Send private message
Stealth Kill



Joined: 29 Dec 2006
Posts: 83

PostPosted: Wed Jun 18, 2008 1:16 pm    Post subject: Reply with quote

IceDagger wrote:
Hmm...

You could try creating a new cvar and registering it. You could then access it via quakec and just check its value in the engine.


Yes i had the idea too Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine 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