Skip to content

A3D_GetExtra

imshooter edited this page Oct 17, 2026 · 1 revision

Read a number kept on a physics object with A3D_SetExtra.

native A3D_GetExtra(Physic:physicid, slot);

Parameters

Parameter Description
Physic:physicid Physics object to read.
slot Slot of the number, from 0 to 7.

Returns

  • The number, 0 when none was kept.
  • 0 when physicid is not a physics object, or slot is out of range.

Remarks

0 is both a number kept and the answer for an id that is not a physics object. Keep 0 out of the values that mean something, or check the id with A3D_IsValidObject.

Related

  • A3D_SetExtra: Keep a number on a physics object, such as the item it stands for.

Home

Guides

Reference

Functions

Creating objects
Motion
Placement
Behaviour
Display and data
Rays
Shapes
Players, vehicles and actors
Map probes
Screen
Map objects
Water
Models and surfaces
Rotations and offsets
Vehicles
Routes
Route display
Walking
Callbacks

Clone this wiki locally