simple rotate to player ai while engaging
This commit is contained in:
@@ -43,8 +43,8 @@ fn init(mut commands: Commands, query: Query<(Entity, &EnemySpawn)>, heads_db: R
|
||||
None,
|
||||
None,
|
||||
]),
|
||||
Ai,
|
||||
))
|
||||
.insert_if(Ai, || !spawn.disable_ai)
|
||||
.with_child((Name::from("body-rig"), AnimatedCharacter(id)))
|
||||
.observe(on_kill);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user