npc

  1. O Ilusionista

    Script to avoid Stuck NPC

    I'm writing some code to prevent the NPC from getting stuck off-screen in levels that have walls. Since they are set to be "subject to screen," that's the only scenario where they could end up off-screen. So, I created code to grab P1's position (since P1 is always on-screen—it's a single-player...
  2. O Ilusionista

    Fastest way to get NPCs

    There may be times in my game when I need to force players to perform an animation (like a winpose), and I use getplayerproperty(), and it works fine. But now I need to do the same with NPCs, and I've noticed that looping and getting the NPCs (count_npc) is slightly slower than getting the...
Back
Top Bottom