oapiGetObjectName

From OrbiterWiki
Revision as of 15:49, 16 October 2022 by Arvil (talk | contribs) (Added category.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns the name of an object given an object handle.

void oapiGetObjectHandle (
                         OBJHANDLE hObj,
                         char *name,
                         int n)

Parameters[edit]

hObj
object handle
name
pointer to character array to receive object name
n
length of string buffer

Notes[edit]

name must be allocated to at least size n by the calling function. If the string buffer is not long enough to hold the object name, the name is truncated.