Skip to content

A3D_SetInterior

imshooter edited this page Nov 4, 2026 · 1 revision

Move a physics object, a static object or a zone to another interior. A streamer object shown with it keeps its own interior.

native bool:A3D_SetInterior(Physic:physicid, interiorid);

Parameters

Parameter Description
Physic:physicid Physics object to move.
interiorid Interior, or -1 for every interior.

Returns

  • true when it was moved.
  • false when physicid is not a physics object.

Remarks

An object of one interior collides with the bodies of that interior and with those of every interior, -1, in the same world. Each piece of the map keeps the interior the game gives it, so a box in interior 5 falls on the floors of interior 5 only. Actors and water have no interior and meet every one.

Two houses built on the same interior in two worlds never share bodies, and two interiors at the same place in one world do not either.

The interior decides collisions only. A streamer object given with A3D_AttachDynamicObject keeps its own interior, so set both.

A moving object wakes up when its interior changes.

Example

stock MoveBallToPlayerInterior(Physic:ball, playerid) {
    A3D_SetWorld(ball, GetPlayerVirtualWorld(playerid));
    A3D_SetInterior(ball, GetPlayerInterior(playerid));
}

Related

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