Independent Software Solutions 

CONTENTS

  CSM GROUP TO OBJECT


Functions

Synopsis

return CSM GROUP TO OBJECT( group index As Integer ) As Integer

Purpose

This function will return you, if it exists, the DarkBASIC Professional object identifier that was used for generating the map geometry for a particular group.  Passing in a group index will return you either a valid object media identifier, or 0.  You can use this to prepare collision systems for groups that contain objects.

Parameters

group index

Specifies the group index >=0 and <total.  Use the CSM COUNT function to obtain the total number for a specific type.

Return value

Returns the group identifier that the specified object belongs to.

See also

CSM OBJECT TO GROUP, CSM PIVOT TO GROUP,
CSM ENTITY TO GROUP, CSM MESH TO GROUP

 

(C) Paul S. J. Millard 2006