Spawning in NPCs

Here’s a few examples from my own project.

Currently I have a place holder for character cosmetics. When the server spawns the character via the GM, it immediately sets a Character Cosmetics variable.

The OnRep_Character Cosmetics function in the character class does all the work.


In my weapons class I do roughly the same thing. I use a Name type variable to get a row from a data table to configure various aspects of the weapon class.


Parent class with all the code/functionality that ALL NPC’s will utilize.
Child class with added specialization.

Parent class will have “Config” variables that will be used to Define the type/use of the NPC. You then use those to configure on spawn.