Jump to content

How to make bird spawn?


Recommended Posts

Hello, I need help :)... So... With a event I want a bird to spawn near my character so I copied code from hats.lua from the featherhat, specifically this code 

local birdspawner = TheWorld.components.birdspawner
        if birdspawner ~= nil then
            birdspawner:SetSpawnTimes(0.01)
            birdspawner:SetMaxBirds(1)
        end

but it doesn't work, a little help would be nice :D!!! Thanks for reading :D!!!

 

Edited by SuperDavid
I solved my problem, no need for help with this anymore
Link to comment
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
 Share

×
  • Create New...