*/ function ENT:DoRagdollBone ( PhysBoneNum, BoneNum ) // self:SetBonePosition( BoneNum, Pos, Angle ) end It will then automatically fill in the rest of the bonesĮnd /*. */ function ENT:SetRagdollBones ( bIn ) // If this is set to true then the engine will call // DoRagdollBone (below) for each ragdoll bone. We're using this to position the limbs // of ragdolls. */ function ENT:BuildBonePositions ( NumBones, NumPhysBones ) // You can use this section to position the bones of // any animated model using self:SetBonePosition( BoneNum, Pos, Angle ) // This will override any animation data and isn't meant as a // replacement for animations. ![]() You shouldn't really be drawing your model here unless it's translucent */ function ENT:DrawTranslucent ( ) // This is here just to make it backwards compatible. I'll try to fit information on how it works into the comments. Second of all, you can use notepad for editing/writing lua, though it's suggested that you google notepad++ and get that. What program do I use for these, and where do I put them?įirst of all, all these files (as of the beta) go into: garrysmod/lua/entities or the respective equal gamemode folder. Scripted npcs are NPCs that the user has total control of, in this example I've taken garry's fighter npc and made it fight the player instead of just shooting props, and it dies properly. 5 Where can I find a list of tasks for my SNPC?. ![]() 4 Where can I find a list of schedules for my SNPC?.2 What program do I use for these, and where do I put them?.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |