Currently, you only receive an index for objects that you create with _DC functions.
To texture them, you need their object ID which is not accessible currently (static array with no getter) - make it accessible. Would also be useful for other things that require object IDs (material text, targeting/shooting objects, etc.)
Would need to keep in mind that players could delete the object or do unwanted stuff with it outside of ColAndreas.
Also, creating MoveObject, MoveDynamicObject wrappers would be nice. Would let you move the collisions smoothly instead of making them jump between positions with CA_SetObjectPos_DC and CA_SetObjectRot_DC. Would be useful for places like gates/lifts.
Currently, you only receive an index for objects that you create with _DC functions.
To texture them, you need their object ID which is not accessible currently (static array with no getter) - make it accessible. Would also be useful for other things that require object IDs (material text, targeting/shooting objects, etc.)
Would need to keep in mind that players could delete the object or do unwanted stuff with it outside of ColAndreas.
Also, creating MoveObject, MoveDynamicObject wrappers would be nice. Would let you move the collisions smoothly instead of making them jump between positions with CA_SetObjectPos_DC and CA_SetObjectRot_DC. Would be useful for places like gates/lifts.