• SetMaterial and Notarget Help?
    0 replies, posted
I'm trying to make a function, that, when called, makes the player invisible, hides his world model, and notargets him to all NPCs. I am planning to use this in MULTIPLAYER, NOT SINGLEPLAYER. So far, I have: [lua] function cloak() self.Owner:DrawWorldModel(false) ply:ConCommand("notarget") end [/lua] 1) Will this work? 2) If not, how do I make it work? I want the notarget to apply only to the player who has this SWEP, and who has called this function. 3) How do I make functions only call for the person holding the SWEP? For example, if two people have this SWEP, I want to make it so they can be invisible and notarget'd individually. I think that "self" has something to do with it, but I can't find anything on it anywhere. Thanks for your help!
Sorry, you need to Log In to post a reply to this thread.