Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Migrated to Confluence 5.3
Excerpt |
---|
Retrieve a game object based on it's type, player and ID... |
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
var gameObj = hackGetObj(type, player, id); |
Parameters
Parameter | Type | Mandatory | Description | Game version |
---|---|---|---|---|
type | Constant | The type of object to retrieve: | 3.2 | |
player | Number | The player to which the object belongs. When retrieving feature objects, specify player as | 3.2 | |
id | Number | The object ID. | 3.2 |
Return value
Value | Type | Description | Game version |
---|---|---|---|
<gameObj> | Game object | The Droid object, Structure object or Feature object that was found. | 3.2 |
null | Null | The object was not found. | 3.2 |
<error> | Error | Invalid parameters specified. | 3.2 |
Example
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
var obj = hackGetObj(DROID, me, 63); // retrieve my droid #63 if (obj) { // do stuff with the obj } |
Div | ||
---|---|---|
| ||
This function has an uncertain future so use with caution!was only available in some early development releases of Warzone 3.2 and has since been replaced by getObject(). |
Div | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Availability
Requires:
Replaced by:
Earlier versions:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
|
Div | ||
---|---|---|
| ||
See alsoRelated articles:
|