Game Development Community

Object Selection Question

by Tim Tebow · in Arcane FX (Public) · 02/15/2009 (2:02 pm) · 1 replies

Before I purchase this I just want to make sure.

It says there is object selection code put in place when purchased.
When the port for 1.8.1 is completed will this still be in place?

If so I am assuming when you click on a object / player it gets its id?

This is one of the only reasons I am looking at getting the pack so sorry if its a weird question ;)

#1
02/17/2009 (8:00 am)
AFX includes a selection system plus a related solution for selection effects, Selectrons.

The selection system follows a one-selection-at-a-time model and it is very similar to how selection and targeting works in World of Warcraft. Players (including AIPlayers) and Corpses are selectable by default, but selection typing and selection range is configurable using preferences.

In the AFX-Demo, selection is done on the client-side and the currently selected object is associated with the GameConnection object. The selected object's Id is retrieved on the client by a call like this:
%selected_obj = ServerConnection.getSelectedObj();

Also, client callouts to script methods GameConnection::onObjectSelected() and GameConnection::onObjectDeselected() occur when the selection changes.

As mentioned, the AFX-Demo does all this on the client, but many users have adapted the system to verify selections on the server.