RE: [hlcoders] Setting Think

2007-04-15 Thread Jay Stelly
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

Re: [hlcoders] Setting Think

2007-04-15 Thread Drak
, 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

RE: [hlcoders] Setting Think

2007-04-15 Thread Jay Stelly
] 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

Re: [hlcoders] Setting Think

2007-04-15 Thread Dest Romano
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