Script for Spawning Actors?
I've looked at some of the actor spawning mods such as the nano assembler factory as well as in game actor spawners such as the zombie spawning devices, but I can't seem to make my own actor spawning device.
The basic code I have for now is this:
Code:
function Update(self)
local spawnactor = CreateAHuman("Soldier Heavy")
spawnactor.Pos = self.Pos
MovableMan:AddActor(spawnactor);
end
Is there something wrong with the code I'm using to spawn actors?