![]() |
2 Questions
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? |
Re: 2 Questions
Quote:
2. dont use DoNothingDesire, use AddTimer inside CREATED and TIMER_FIRED events, and inside TIMER_FIRED use your MoveTo stuff |
Re: 2 Questions
Quote:
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. |
About math functions, I already find some functions:
% mod | bit or & bit and and so.... :( server not have a sqrt function or operator... |
Re: 2 Questions
Quote:
MOVE_TO_FINISHED MOVE_TO_WAY_POINT_FINISHED MOVE_AROUND_FINISHED try to add new desires somewhere there |
[rus]
Ты не понял! Я все эти функции уже пробовал! Возможно нужна какая-то манипуляция с его глобальными параметрами, типа float MoveTo_DecayRatio = 0.0; или float MoveTo_BoostValue = 0.0; Он вообще игнорит все приказы передвигаться куда либо, если рядом никого нету! Но как только кто-то рядом появляется, у него просыпается желание и он бежит сломя голову дальше! Я пробовал даже делать телепортацию с таймером, но в результате он после всех телепортаций начинал бегать дальше туда, куда он до этого не добежал! [/rus] many word, no sense.. sorry others! :roll: |
Quote:
lol, you really need sqrt in AI ? - sqrt for integer values using common operands: Code:
unsigned sqrt_newton(long l) |
Quote:
|
Quote:
add Say texts to handlers to see when and what fired e.g. PSTATE_IDLE IDLE_FINISHED IDLE_INTRRUPTED etc... |
Quote:
but something need to do... ok, I'm go on thinking... |
i think GM in insivible mode not visible for mobs...
and they possible will still in idle mode, when that GM will close maybe not... not tested.. |
Quote:
You right think that I do all it in hide mode? :lol: Not, this problem is very serious! |
Are you know, RemoveAllAttackDesire will remove only attack desires or all desires?
|
| All times are GMT. The time now is 15:25. |