NPC onTick Function
NPC onTick Function
What would be the overhead on adding something like an onTick function to NPCs be. Where each interval the core checked to see if the NPC's lua had an onTick function, and performed whatever was in the script. Changing animation or whatever.
-
- Posts: 15
- Joined: Sat Aug 04, 2012 12:55 am
Re: NPC onTick Function
Can you give an example of where this would be needed?
Re: NPC onTick Function
NPCs that should appear to be in different stages of a task, such as fishing, crafting (so switch their animation occasionally). NPCs that have a routine path they walk along. (move them along to point B, wait, then start back towards point A).
Re: NPC onTick Function
Would this be for things like when Vhana Ehgaklywha lights the streetlamps?
Re: NPC onTick Function
I am sorry, but it is bad idea. too much processor time for the sake of 1-2 npcs will be lost
-
- Developer
- Posts: 539
- Joined: Sun Jul 22, 2012 12:17 am
Re: NPC onTick Function
NPC movements can't really be approached until DesertWorld is finished, really. Otherwise, you have NPCs walking through walls.
The npc_list table has an animation and subanimation field. I have no idea if they actually do anything now, but that would probably handle non-walking NPCs for a start, once it's implemented.
The npc_list table has an animation and subanimation field. I have no idea if they actually do anything now, but that would probably handle non-walking NPCs for a start, once it's implemented.
Test Server: Hanekawa | Fantasy World: Naito
An occasionally updated list of what works
Bugs reports go here. | Project chat here.
Things I've found, but don't plan to work on.
An occasionally updated list of what works
Bugs reports go here. | Project chat here.
Things I've found, but don't plan to work on.
Re: NPC onTick Function
dont worry, it do what must do ^^PrBlahBlahtson wrote: The npc_list table has an animation and subanimation field. I have no idea if they actually do anything now