• Positioning Issues
    2 replies, posted
So I'm trying to make a timer for a SENT, that does things like spawns raiders, but the problem is I'm not sure how to pass it as an argument for the function of the ENT. Can someone please assist?
YourEntity:YourFunction(YourArgument)
i.e. [lua]function ENT:SayHello( name ) for _,pl in pairs(player.GetAll()) do pl:ChatPrint(name .. " says hi!"); end end[/lua] And in your code... [lua]ent:SayHello("TheNerdPest")[/lua]
Sorry, you need to Log In to post a reply to this thread.