• Garry's Mod Player as NPC (Pills addon?)
    4 replies, posted
For my gamemode I need players to be able to play as NPC's. (Or at least with the model) A while ago I heard about the pills addon where you can change into a npc by selecting the pills weapon from the Q-menu. I tried to modify it with different models but i can't make it work. Can someone give me a code or a addon and explain me where to change what. -Syl
well, for starters you could try and just change the player's model to what you want. [lua]player:SetModel(modelhere)[/lua]
Depending on it's size. You should take a look at stuff like these: [B][URL="http://wiki.garrysmod.com/?title=Player.GetViewOffset"]Player.GetViewOffset [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL] [/B][B][URL="http://wiki.garrysmod.com/?title=Player.SetViewOffset"]Player.SetViewOffset [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL] [/B]
What do you mean by having a player play as a NPC?
He means setting a players model, moving the viewpoint (as Freze suggested) and possibly giving the player a few NPC "like" moves.
Sorry, you need to Log In to post a reply to this thread.