Reachability of code

dodomorandi
New member
 
Posts: 6
Joined: Fri Oct 07, 2011 13:29

Reachability of code

by dodomorandi » Fri Oct 14, 2011 19:56

I was trying to use some event-related pieces of code, but I have a problem.
I'm not able to trigger anything that brings the code inside Client::clickObject. The problem is that inside function the_game, around line 1510 in the master branch, client.getSelectedObject always returns NULL for me.

If someone can help me I really would appreciate that!
Thanks

-- dodomorandi
 

kahrl
Member
 
Posts: 236
Joined: Fri Sep 02, 2011 07:51

by kahrl » Sat Oct 15, 2011 12:24

MapBlockObjects are not used at all anymore, unless you are playing on a very old map. They have been deprecated for a long time.
- SignObject has been replaced by sign nodes (MapNodes with content CONTENT_SIGN_WALL and SignNodeMetadata)
- RatObject has been superseded by RatCAO/RatSAO
- ItemObject has been superseded by ItemCAO/ItemSAO
- PlayerObject was never used AFAIK; other players are drawn by the RemotePlayer class.
 

dodomorandi
New member
 
Posts: 6
Joined: Fri Oct 07, 2011 13:29

by dodomorandi » Tue Oct 25, 2011 23:17

Perfect! Thanks kahrl!
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 3 guests

cron