Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Migrated to Confluence 5.3
Excerpt |
---|
Define the location where transports will exit the map... |
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
setTransporterExit(x, y, player); |
Parameters
Parameter | Type | Mandatory | Notes | Game version |
---|---|---|---|---|
x | Number | The x co-ordinate where the transport should disappear. | 3.2 | |
y | Number | The y co-ordinate where the transport should disappear. | 3.2 | |
player | Number | The ID of the player who this exit point belongs to. | 3.2 |
Return value
Notes
This function is primarily designed for use in campaign missions. In other game modes, it would probably be better to use removeObject() instead.
When specifying the co-ordinates where the transport disappears, you should ideally choose a position at the edge of the map, otherwise it will look like the transport just disappears in to thin air.
When the transport leaves the map, eventTransporterExit() will be triggered.
Example
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
setTransportEexitsetTransportExit(47, 0, me); |
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
Availability
Requires:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
|
Include Page | ||||
---|---|---|---|---|
|