at the moment im trying to write a small gamemode for the stargate_worlds v3 map. It divides players in goauld and tauri and spawn them on there homeworlds(temple/desert world and SGC) instead on the normal starterworld.
Now i want to add something more.
If someone spawns an Jaffa NPC i want to set thisone friendly for goauld and unfriendly for tauri. The code to set the relationship i got already.
My problem is how to “hook” the spawning NPC in my init.lua of my gamemode.
In short for all. I want to know how i can hook a spawning npc in the init.lua of my gamemode.