There are two pieces of data - the think function and the think time.
You have to set both.
For goldsrc:
// this will schedule a think right away
SetThink ( CCan::CanThink );
pev-nextthink = gpGlobals-time;
If you want the think function to get called again every second then you
need to
, April 15, 2007 8:36 PM
Subject: RE: [hlcoders] Setting Think
There are two pieces of data - the think function and the think time.
You have to set both.
For goldsrc:
// this will schedule a think right away
SetThink ( CCan::CanThink );
pev-nextthink = gpGlobals-time;
If you want the think function
] On Behalf Of Drak
Sent: Sunday, April 15, 2007 6:30 PM
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] Setting Think
Sweet, thanks man, works fine :D
But one question, why did you use SetThink ( CCan::CanThink
); instead
of:
SetThink( CanThink); or, it really has no purpose which
SetThink ( CCan::CanThink );
CCan::CanThink means the memory address of CCan:CanThink
From: Drak [EMAIL PROTECTED]
Reply-To: hlcoders@list.valvesoftware.com
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] Setting Think
Date: Sun, 15 Apr 2007 21:29:58 -0400
Sweet, thanks man
4 matches
Mail list logo