Quote:
|
Originally Posted by Xelat
Quote:
|
Originally Posted by humordwarf
Quote:
|
Originally Posted by Xelat
1. Anyone knows all math functions of AI in NASC e.g. sqrt and etc? (symbol ^ is xor)
2. I making moving NPC's, but have a problem! When no one of players don't see the NPC, he will stoops and no making next movetodesire event, or not finish current. How to fix this?
|
1. % is mod :wink:
2. dont use DoNothingDesire, use AddTimer inside CREATED and TIMER_FIRED events, and inside TIMER_FIRED use your MoveTo stuff
|
I already try this, but no have other results!
I say more!
NPC stops only on finish point of movetodesire, not on path. When NPC is stopped, and I going to NPC, when I see NPC, he's continue moving!
Strange system, but maybe it's made to decrease server loading.
|
hanlers:
MOVE_TO_FINISHED
MOVE_TO_WAY_POINT_FINISHED
MOVE_AROUND_FINISHED
try to add new desires somewhere there