Object: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (→‎Building: typo)
(Written introduction)
Line 1: Line 1:
'''Object''' refers to a building block within a scenario. In general when using this term the author refers to the representation of an object that can be manipulated when in the 3D environment via the scripting language. As there is a special representation that is used in the mission editor, one might distinguish between a 'game object' (this article) and an 'editor object' (see [[Editor Object]]).
==Object Type==
==Object Type==
An Object in the scripting (sqs) language is a generic reference for a soldier, vehicle or building.
An Object in the scripting language is a generic reference for a soldier, vehicle or building. Such an object can be animated (a house, a tank), can have ai associated with it (a soldier), or, simply be a 'Rock'. Various commands in the scripting language can refer as equally to generic (eg Object) types, as much as specific subtypes.
 
Such an object can be animated (a house, a tank), can have ai associated with it (a soldier), or, simply be a 'Rock'
 
various commands in the scripting language can refer as equally to generic (eg Object) types, as much as specific subtypes.


  _pos = GetPos player;
  _pos = GetPos player;
Line 11: Line 9:
==Subtypes==
==Subtypes==


various 'subtypes' of an Object exist as poetic licence when describing the script command.
Various 'subtypes' of an Object exist as poetic licence when describing the script command.


'''In General''' where a subtype is listed (rather than an 'Object' type) it means the command can/ should/ or is more normally associated with, that SUB type.
'''In General''' where a subtype is listed (rather than an 'Object' type) it means the command can/ should/ or is more normally associated with, that SUB type.

Revision as of 17:38, 15 January 2010

Object refers to a building block within a scenario. In general when using this term the author refers to the representation of an object that can be manipulated when in the 3D environment via the scripting language. As there is a special representation that is used in the mission editor, one might distinguish between a 'game object' (this article) and an 'editor object' (see Editor Object).

Object Type

An Object in the scripting language is a generic reference for a soldier, vehicle or building. Such an object can be animated (a house, a tank), can have ai associated with it (a soldier), or, simply be a 'Rock'. Various commands in the scripting language can refer as equally to generic (eg Object) types, as much as specific subtypes.

_pos = GetPos player;
_pos = GetPos _MyHouse;

Subtypes

Various 'subtypes' of an Object exist as poetic licence when describing the script command.

In General where a subtype is listed (rather than an 'Object' type) it means the command can/ should/ or is more normally associated with, that SUB type.

Vehicle

A vehicle is an Object such as a Tank, car, Helicopter.

Person

A Person is a soldier, man, leader, player, woman.

Unit

A Unit is either a Person, or, Vehicle

Units

Units are an Array of type unit

Unit(s)

Unit(s) refer to EITHER an Array of type unit, or, a singular unit OR a Group. This distinction in the command reference refers to very different Types, any of which could be used in the same command syntax

_Unit DoWatch Position
[_unit1,_unit2,_unit3] DoWatch Position
_group1 allowFleeing 0.8

Building

When used in the command reference, this 'Object' specifically refers to a non AI type model, such as a house, or a rock.