View Single Post
Old 13.02.2006, 18:57   #6
Kirikups
Архивный участник
 
Join Date: Oct 2005
Posts: 175
Default

i wrote

[...]if ((myself.c_ai0 != creature)[...]
myself.c_ai0 = creature;[...]


because i suppose creature is a pointer to the pc address:

void CNPC::SeeCreature(CSharedCreatureData* spCreature)

i supposed naturally having to save it in myself.c_ai0 to be able to recall that address in the TIMER_FIRED() handler ... i didnt find any TIMER_FIRED(creature) sample in NASC samples files, and it is normal since that handler is not launched by a creature but by SetTimerPeriod function

Correct me if i am wrong
Kirikups is offline