How to make Npc able to move on top of each other
Moderators: marionline, SDHawk
- 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
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
-
- Slime Knight
- Posts: 258
- Joined: Thu Nov 16, 2017 5:22 am
So, if your invisible npc is, say, npc id 3: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.
Code: Select all
set NPC obstructs (3, false)
Do you make love with the same urgency you make games?
- Seamus Moore
- Slime
- Posts: 19
- Joined: Mon Mar 16, 2020 9:39 pm
- Location: Seamus Moore's House