武装突袭 Wiki
Advertisement
  Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Sets vehicle as respawnable in MP game. The vehicle will be spawned at the locality and coordinates it was prior to destruction. If respawn type is set to base respawn (type 3) and vehicle respawn marker is provided (respawn_vehicle_XXXSIDEXXX), vehicle will spawn on the marker.

NOTE: Command has to be executed where vehicle is local

基本句法

句法:
vehicle respawnVehicle [delay, count]
参数:
vehicle: Object
[delay, count]: Array
delay: Number - Delay in seconds between respawns. (-1 to use respawnDelay from description.ext)
count: Number (Optional) - How many times to respawn vehicle in total. (0 - unlimited respawns)
返回值:
Nothing

范例

范例1:
car respawnVehicle [5, 3]; 'car' will respawn at the predefined marker for the side after 5 seconds. The unit will respawn 3 times.
范例2:
car respawnVehicle [30]; 'car' will respawn at the predefined marker for the side after 30 seconds. The unit will respawn an unlimited number of times.

额外资讯

多人游戏:
-
也可以看看:
playerRespawnTimesetPlayerRespawnTime

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes


Bottom Section

Posted on May 28, 2007 - 16:38 (CEST)
Sy
For this command to work (in MP) you need the appropriate markers in the mission. The markers are...
respawn_vehicle_west
respawn_vehicle_east
respawn_vehicle_guerilla
respawn_vehicle_civilian

Also, by default it will use respawnDelay from the description.ext as mentioned unless you specify

respawnVehicleDelay = x;

Where x is delay in seconds.


In Multiplayer the respawned vehicle remains local to the client who was the last driver of the vehicle or the client who was the leader of the last AI driver of the vehicle. If the vehicle has yet to be driven or the AI driver is local to the Server then the respawned vehicle will be local to the Server.

Advertisement