武装突袭 Wiki
Advertisement
Introduced with Arma 3 version 0.50
  Arguments of this scripting command don't 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

点击图片可看到更多讯息

开始使用于

游戏:
Arma 3
版本:
0.50

描述

描述:
Animates a door on a vehicle. Animation is defined in config file in CfgVehicles -> AnimationSources. Wanted animation phase is set with phase param. This command works only on animation sources with "door" controller. Door_L in the example below can be animated with animateDoor but not CargoRamp_Open: heli animateDoor ["Door_L", 1];
class AnimationSources
{
	class CargoRamp_Open
	{
		source = "user";
		animPeriod = 5;
		initPhase = 0;
	};
	class Door_L
	{
		source = "door";
		animPeriod = 1.6;
	};
};
To animate doors or other sources that have "user" controller, use animate command, or even better, animateSource (recommended). Sources with "hit" controller can be animated with setHitPointDamage command applied to the name contained in hitpoint property. For availability of animation sources and their controller types see: createVehicle/vehicles

基本句法

句法:
object animateDoor [doorname, phase, instant]
参数:
object: Object
[doorname, phase, instant]: Array
doorname: String
phase: Number
instant: Boolean (When true and phase is either 0 or 1, door will change phase instantaneously)
返回值:
Nothing

范例

范例1:
Taru animateDoor ["Door_1_source", 1];
范例2:
Open left front door on Ifrit instantly:Ifrit animateDoor ["Door_LF", 1, true];

额外资讯

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

注意事项

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

Notes

Bottom Section

Advertisement