Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there any way to return an npc to it's origin?

Asked by 4 years ago

On the game that I've been working on, robots come out of little "boxes" in the walls, and attempt to kill you. This game is supposed to make you die multiple times before you find the way out of the facility, which it succeeds in doing. There is a problem however. Whenever the robots come out to attack, they don't return to where the came from, so whenever you respawn, when you get to the point where you were attacked, you can't pass because they block the hall, and attempting to do so will obviously kill you. Is there any kind of script function or something that returns them to their origin? I have no clue, and need help.

0
Set either a personal spawnpoint for each npc or a global spawnpoint and detect with an event whenever the player dies, loop through all the npcs and make them go back to their spawnpoint. iDarkGames 483 — 4y
0
Thanks! I will definetly look into that! supershadow116 0 — 4y

Answer this question