natives.CREATE OBJECT NO OFFSET: Difference between revisions

(Add ScriptItem documentation from GTA VC SCM decompile)
 
(Add ScriptItem documentation from GTA VC SCM decompile)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
// CREATE_OBJECT_NO_OFFSET
{{ScriptItem2
// 233 appels SCM
|side = client
 
PATTERNS SCM:
  VAR = init_object #DTN_STADDOORA at float float float
  VAR = init_object #DTN_STADDOORB at float float float
  $int = init_object #DTHOTRING_A at float float float
  VAR = init_object #CI_GATESCLOSED at float float float
  VAR = init_object #CI_BACKGATECLOSE at float float float
  $int = init_object #YT_MAIN_BODY at float float float
  $int = init_object #YT_MAIN_BODYint at float float float
  $int = init_object #YT_DOORSint at float float float
 
PARAMS WIKI: Vec3 position
 
EXEMPLES:
  create_object_no_offset $Arena_door_1 = init_object #DTN_STADDOORA at -1109.615 1330.097 20.372
  create_object_no_offset $Arena_door_2 = init_object #DTN_STADDOORB at -1109.615 1331.932 20.372
  create_object_no_offset $6 = init_object #DTHOTRING_A at -1037.08 1340.2581 36.552
 
TEMPLATE:
{{ScriptItem
|endpoint = client
|games = vc
|games = vc
|type = function
|type = function
|name = natives.CREATE_OBJECT_NO_OFFSET
|name = natives.CREATE_OBJECT_NO_OFFSET
|parameters = Vec3 position
|arg1 = int model Model identifier.
|parameter1 = Vec3 position Description
|arg2 = Vec3 position World coordinates (x, y, z).
|usage = Create object no offset in Vice City.
|desc = spawns an object at exact coordinates without automatic ground placement
|return1 = void
|return1 = void
|returnFail1 = void
}}
}}

Latest revision as of 18:37, 13 June 2026

Function Client Only icon-vc.png Online and Offline

Available since Client 1.0.0
void natives.CREATE_OBJECT_NO_OFFSET(int model, Vec3 position)
The natives.CREATE_OBJECT_NO_OFFSET function is used to spawns an object at exact coordinates without automatic ground placement.

Parameters

1) int model Model identifier.
2) Vec3 position World coordinates (x, y, z).

Return

void This function doesn't return a value.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Client Related

getObjectCount
        getObjects
gta.convertAllObjectsToDummyObjects
        gta.createObject
gta.removeWorldObject
gta.setVisibilityOfClosestObjectOfType
registerNetObject

        object.affectedByGravity
  object.alpha
      object.boundingCentre
        object.boundingMax
        object.boundingMin
        object.boundingRadius
        object.centerOfMass
        object.children
        object.clearExistsFor
        object.collisionBoxCount
        object.collisionBoxes
        object.collisionLineCount
        object.collisionLines
      object.collisionPower
        object.collisionsEnabled
        object.collisionSphereCount
        object.collisionSpheres
        object.collisionVertexCount
      object.collisionVertices
        object.dimension
      object.distanceFromCentreOfMassToBaseOfModel
        object.existsFor
        object.getData
        object.getRotation
        object.heading
object.health
        object.id
        object.interior
object.inWater
        object.isCreatedFor
object.island
        object.isLocal
        object.isOnScreen
        object.isOwner
        object.isSyncer
        object.isType
      object.markAsNoLongerNeeded
        object.mass
        object.matrix
object.model
        object.modelIndex
        object.name
        object.netFlags
object.onScreen
        object.parent
        object.position
        object.removeAllData
        object.removeData
        object.resource
        object.rotation
        object.setData
        object.setExistsFor
        object.setProofs
        object.setRotation
        object.setSyncer
      object.status
        object.streamInDistance
        object.streamOutDistance
        object.syncer
        object.syncerId
        object.turnVelocity
        object.type
        object.velocity
object.visible