A still player model

User avatar
GamingAssociation39
Member
 
Posts: 819
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: 1272
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
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 | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 


Return to Modding Discussion



Who is online

Users browsing this forum: No registered users and 3 guests