Jump to content

Recommended Posts

I have this code in my character's prefab.lua file

 

    inst:AddComponent("periodicspawner")
    inst.components.periodicspawner:SetPrefab("angry")
    inst.components.periodicspawner:SetRandomTimes(4800, 7200)
    inst.components.periodicspawner:SetDensityInRange(5, 5)
    inst.components.periodicspawner:SetMinimumSpacing(100)
    inst.components.periodicspawner:Start()
 
and on SetRandomTimes I had 30,31 and Angry would spawn every 30 seconds that way!
I upped the values so it'd be every 5-7 days and angry will not spawn at all! (I waited 11 days for him and still nothing)
 
anyone know what's wrong? thanks in advanced!!! ^_^
Link to comment
https://forums.kleientertainment.com/forums/topic/31725-mod-help-npc-wont-spawn/
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...