Object: Difference between revisions
mNo edit summary |
m (better explanation, expansion to subtypes) |
||
Line 1: | Line 1: | ||
An Object in the scripting(sqs)language is a generic reference for a soldier, vehicle or building. | ==Object Type== | ||
An Object in the scripting (sqs) 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' | Such an object can be animated (a house, a tank), can have ai associated with it (a soldier), or, simply be a 'Rock' | ||
Line 5: | Line 6: | ||
various commands in the scripting language can refer as equally to generic (eg Object) types, as much as specific subtypes. | 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; | ||
_pos = GetPos _MyHouse; | _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 | |||
===Units(s)=== | |||
Unit(s) refer to EITHER and [[Array]] of type unit, or, a singlular unit. This distinction in the command reference refers to two very different Types, either of which could be used in the same command syntax | |||
_Unit DoWatch [[Position]] | |||
[_Units]DoWatch [[Position]] | |||
==Building== | |||
When used in the command reference, this 'Object' specifically refers to a non ai type model, such as a house, such as, a rock. | |||
[[Category: Data Types]] | [[Category: Data Types]] |
Revision as of 02:40, 27 August 2007
Object Type
An Object in the scripting (sqs) 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
Units(s)
Unit(s) refer to EITHER and Array of type unit, or, a singlular unit. This distinction in the command reference refers to two very different Types, either of which could be used in the same command syntax
_Unit DoWatch Position [_Units]DoWatch Position
Building
When used in the command reference, this 'Object' specifically refers to a non ai type model, such as a house, such as, a rock.