Search found 2 matches

Return to advanced search

Re: Post your modding questions here

. . . Short answer: make a persistent variable outside the `register_on_joinplayer()` function: local storage = {} minetest.register_on_joinplayer(function(player) --player object local pos = player:getpos() storage.y = pos.y end) That'll only work for a single player, much better is: local storage...
by Thegameboy
Sun May 22, 2016 18:59
 
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 3735
Views: 973974

Re: Post your modding questions here

Topic: Is there any update function? Reason: Update function to place code in that updates every tick/frame, to continually check certain conditions? Also, for something like... minetest.register_on_joinplayer(function(player) --player object local pos = player:getpos() local y = pos.y end) ...how d...
by Thegameboy
Sun May 22, 2016 00:27
 
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 3735
Views: 973974

Return to advanced search

cron