TeleportVehicle routine

TURBU

TeleportVehicle routine

 

Teleports a specified vehicle to another location.

 

Syntax

 

procedure teleportVehicle(which: TRpgVehicle; map, x, y: integer);

 

Description

 

This routine teleports the specified vehicle to a new location, as specified by the map ID # and coordinates passed to the routine.  It does nothing if the location is not within the map's boundaries.  It also does nothing if the vehicle is currently carrying the active party and the destination is on a different map; the teleport routine should be used in this case.

 

WARNING: The routine does not check whether or not the destination square is valid terrain for the vehicle.  It's possible to teleport the vehicle to invalid terrain, which could cause movement problems.

 

Related topics

teleport routine

This help file was created with the free trial version of HelpScribble.