I think it'sCode:public void turnNpc(int i, int j) { focusPointX = 2 * i + 1; focusPointY = 2 * j + 1; updateRequired = true; turnUpdateRequired = true; }
|
|
i have been looking everywhere on moparscape for how to turn an npc. and nobody answered. so i knew it was time to post it on rune-server and hopefully you guys will answer my questtions. How do you turn an npc to face east, west or north because i hate it when the npc always faces south.
BTW this is a delta 317 base
Thanks
- Joe

I think it'sCode:public void turnNpc(int i, int j) { focusPointX = 2 * i + 1; focusPointY = 2 * j + 1; updateRequired = true; turnUpdateRequired = true; }
Bump

If you want the NPC to face north you do:
For south you do:Code:turnNpc(npc.absX, npc.absY + 1);
for east you do:Code:turnNpc(npc.absX, npc.absY - 1);
and for west you do:Code:turnNpc(npc.absX + 1, npc.absY);
Code:turnNpc(npc.absX - 1, npc.absY);
bump
npc mask... It would be in your npc updating stuff.
| « witch vps to use? hmm | Help with DSPK » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |