How to make Npc able to move on top of each other

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
Seamus Moore
Slime
Posts: 19
Joined: Mon Mar 16, 2020 9:39 pm
Location: Seamus Moore's House

How to make Npc able to move on top of each other

Post by Seamus Moore »

I have an invisible step-on Npc that triggers a script, as well as another visible npc that has to be able to be pushed around freely over the invisible one. But the npc refuses to go over it, despite the hero character being able to walk on it. How do I solve this problem?
dQw4w9WgXcQ
ArtimusBena
Slime Knight
Posts: 205
Joined: Thu Nov 16, 2017 5:22 am

Post by ArtimusBena »

set NPC obstructs (who, value)

Given an NPC reference or NPC ID (in which case the first NPC with that ID is used), set whether the NPC should be an obstruction to heroes and other NPCs. If set to false, the NPC can move through heroes and other NPCs and vice-versa. Heroes can always pass through Step-on NPCs. value should be true or false.
So, if your invisible npc is, say, npc id 3:

Code: Select all

set NPC obstructs (3, false)
Do you make love with the same urgency you make games?
User avatar
Seamus Moore
Slime
Posts: 19
Joined: Mon Mar 16, 2020 9:39 pm
Location: Seamus Moore's House

Post by Seamus Moore »

it worked, thanks
dQw4w9WgXcQ
Post Reply