Load value from qc?
Moderator: InsideQC Admins
3 posts
• Page 1 of 1
Load value from qc?
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
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
- Stealth Kill
- Posts: 83
- Joined: Fri Dec 29, 2006 12:34 pm
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
- Stealth Kill
- Posts: 83
- Joined: Fri Dec 29, 2006 12:34 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest