Repository navigation
A3D_IsValidObject
imshooter edited this page Oct 17, 2026
·
1 revision
Whether a physics object, a static object or a zone exists.
native bool:A3D_IsValidObject(Physic:physicid);| Parameter | Description |
|---|---|
Physic:physicid |
Physics object to check. |
-
truewhen it exists. -
falsewhen it does not.
Ids are reused, so a valid id may belong to a newer object than the one a script kept long ago. Keep ids in variables that are reset on destroy, or mark objects with A3D_SetExtra.
stock bool:IsBallInPlay(Physic:ball) {
if (!A3D_IsValidObject(ball)) {
return false;
}
return A3D_IsMoving(ball);
}- A3D_DestroyObject: Destroy a physics object, a static object or a zone, and the global object that shows it.
- A3D_SetExtra: Keep a number on a physics object, such as the item it stands for.
3DAndreas 0.7.1 · Repository · Releases · MIT License
Guides
- Installation
- Configuration
- Physics objects
- Model settings
- World queries
- The screen
- Routes
- Navigation mesh
- Map database
- Coming from ColAndreas
- Performance
Reference
Functions