A still player model

User avatar
GamingAssociation39
Member
 
Posts: 795
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

A still player model

by GamingAssociation39 » Sat Dec 29, 2018 19:12

I need a mod made that has the player model which just stands there and does the standing animation.
Jesus Is Lord and Savior!!!
 

User avatar
GreenDimond
Member
 
Posts: 1244
Joined: Wed Oct 28, 2015 01:26
Location: *teleports behind you*
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: A still player model

by GreenDimond » Sat Dec 29, 2018 19:28

Code: Select all
minetest.register_entity("mymod:player", {
   visual = "mesh",
   mesh = "character.b3d",
   textures = {"character.png"},
   collisionbox = {-0.5, 0.0, -0.5, 0.5, 2.0, 0.5},
   makes_footstep_sound = false,
   on_activate = function(self, staticdata)
      -- Make immortal
      self.object:set_armor_groups({immortal = 1})
      -- Set animation
      self.object:set_animation({x=1,y=40}, 30)
   end,
})
Y▹uTube | Mods | Patreon | Minetest Discord | GreenDimond#3232
 


Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 10 guests