- Home /
Question by
DOABARRELROLL · Apr 07, 2021 at 01:40 AM ·
instantiateartificial intelligence
AI won't move when Instantiated but will if i drag them in?
The AI just sits there not moving when they get instantiated but if i drag and drop the same ai prefab into the scene at runtime it works just find. Any tips? The only way they work is if i dont set the position in instantiate which sucks because they all just spawn at 0,0,0 that way. I tried delaying it but setting them to not active as default then having the spawner script activate them after they've already been placed in the world but it didn't work either.
mediumcreatureai.txt
(1.9 kB)
enemyspawner.txt
(1.1 kB)
Comment
I'm not sure can you post more information? I always set the position after I spawn, not sure if that will make a difference.
Your answer
Follow this Question
Related Questions
Problems with AI script 2 Answers
Help with my Flocking Algorithm 0 Answers
Checking if object intersects? 1 Answer