mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Update game_api.txt
This commit is contained in:
		@@ -440,11 +440,16 @@ Player API
 | 
			
		||||
 | 
			
		||||
The player API can register player models and update the player's appearance.
 | 
			
		||||
 | 
			
		||||
* `player_api.globalstep(dtime, ...)`
 | 
			
		||||
	* The function called by the globalstep that controls player animations.
 | 
			
		||||
	  You can override this to replace the globalstep with your own implementation.
 | 
			
		||||
	* Receives all args that minetest.register_globalstep() passes
 | 
			
		||||
 | 
			
		||||
* `player_api.register_model(name, def)`
 | 
			
		||||
	* Register a new model to be used by players
 | 
			
		||||
	* `name`: model filename such as "character.x", "foo.b3d", etc.
 | 
			
		||||
	* `def`: see [#Model definition]
 | 
			
		||||
    * Saved to player_api.registered_models
 | 
			
		||||
	* Saved to player_api.registered_models
 | 
			
		||||
 | 
			
		||||
* `player_api.registered_models[name]`
 | 
			
		||||
	* Get a model's definition
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user