|
|||
|
CONTENTS |
CSM OBJECT TO GROUP | ||
|
Synopsis return CSM OBJECT TO GROUP( dbObjectMediaID As Integer ) As Integer Purpose This function is primarily used for collision systems. When you first load your Cartography Shop map file, setting up collision for the map would normally be done by cycling through your group list, obtaining the parent object identifiers that the group may have and then passing these to a collision system such as Nuclear Glory. When a collision occurs, you are given an object media Identifier which caused the collision. Passing that object media Identifier to this function will return the group index. With the group index, you can then obtain any properties associated with the group. To read more about setting up collision, see 'Collision'. Parameters dbObjectMediaID Specifies the DarkBASIC Professional object media identifier that belongs to a specific group. This value could be returned by a collision routine or system such as Nuclear Glory. Return value Returns the group identifier that the specified object belongs to. See also CSM GROUP TO OBJECT, CSM PIVOT TO GROUP,
|
|
(C) Paul S. J. Millard 2006 |