Let's say one has created a weapon that fires babies, how would you go about making the prop perish after a certain amount of time?
I think I can hit 'Z' to undo the prop, but I'd like to have a convenient code to just do it for me.
Thanks in advance!
[highlight](User was banned for this post ("Didn't read the sticky - wrong section" - Gran PC))[/highlight]
Make the baby an entity.
Put something like this inside the Initialize function:
[lua]
timer.Simple(15, function()
ENT:Remove()
end)
[/lua]
Sorry if the code is formatted weird, I'm new to facepunches formatting stuff
If you need a base entity (Just a blank entity) take this:
[url]http://www.mediafire.com/?r82alsxe43uf736[/url]
[lua]baby:Fire("kill","",15)[/lua] ?
Sorry, you need to Log In to post a reply to this thread.