VOB – functions for object manipulation¶
zDExt_Vob_RotateLocal¶
Rotates a specified vob by given angles in local scope.
vobName– name of vob in the game worldrotX– rotation angle around X axis (degrees)rotY– rotation angle around Y axis (degrees)rotZ– rotation angle around Z axis (degrees)
| Example usage | |
|---|---|
zDExt_Vob_RotateWorld¶
Rotates a specified vob by given angles in global scope.
vobName– name of vob in the game worldrotX– rotation angle around X axis (degrees)rotY– rotation angle around Y axis (degrees)rotZ– rotation angle around Z axis (degrees)
| Example usage | |
|---|---|
zDExt_Vob_MoveTo¶
Moves a specified vob to the position of a given waypoint, freepoint, or another vob.
vobName– name of vob in game worldpointName– name of an existing waypoint, freepoint or vob in game world
| Example usage | |
|---|---|
zDExt_Vob_MoveToPos¶
Moves a specified vob to the exact coordinates (X, Y, Z) in the game world.
vobName– name of vob in game worldposX– X coordinate in the game worldposY– Y coordinate in the game worldposZ– Z coordinate in the game world
| Example usage | |
|---|---|
zDExt_Vob_SetToFloor¶
Sticks a vob with a specified name to the ground.
vobName– name of vob in game world
| Example usage | |
|---|---|
zDExt_Vob_SetVisual¶
Sets the visual of a specified vob in the game world.
vobName– name of vob in game worldvisualName– name of assets (e.g. 3DS, ASC or MDS)
| Example usage | |
|---|---|
zDExt_Vob_SetCollisionDetection¶
Enables or disables dynamic and static collision detection for a specified vob.
vobName– name of vob in game worlddynamicCollDet– dynamic collision detectionstaticCollDet– static collision detection
| Example usage | |
|---|---|
zDExt_Vob_GetDistToPos¶
Gets the squared horizontal distance between a vob and a world position. The Y coordinate is ignored. For a 500 cm radius, compare against 500 * 500.
vobName– name of vob in game worldposX– X coordinate of target positionposY– Y coordinate of target positionposZ– Z coordinate of target positionreturn– squared horizontal distance in cm², truncated to an integer;2147483647if the vob is missing
| Example usage | |
|---|---|
zDExt_Vob_GetDistToNpc¶
Gets the distance between the vob and an NPC (in cm).
vobName– name of vob in game worldnpc– instance of the NPCreturn– distance between vob and NPC in cm, truncated to an integer;2147483647if either object is invalid
zDExt_Vob_GetPortalRoom¶
Gets the name of the portal room in which the specified vob is currently located.
vobName– name of vob in game worldreturn– name of portal room, or an empty string when the vob is missing or outside a portal room