Fandom

武装突袭 Wiki

InputAction

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 分享

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 2
版本:
1.00

描述

描述:
Return the state of input devices mapped to given input action.
For Arma 3 inputActions see: InputAction/actions.
For Arma 3 inputActions bindings see: InputAction/actions/bindings.
For earlier Arma editions see Category:Key Actions.

基本句法

句法:
inputAction name
参数:
name: String - name of the action
返回值:
Number

范例

范例1:
inputAction "leanLeft" Returns 1 if the button mapped to "leanLeft" is pressed currently else 0.

范例2:
[] spawn { waitUntil {inputAction "reloadMagazine" > 0}; hint "Reload Key Pressed"; };

额外资讯

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

actionKeysactionKeysImagesactionKeysNamesaction

注意事项

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

Notes

Posted on 07:38, 15 October 2010 (CEST)
Worldeater
This command also returns values other than 0 and 1 (like 0.02 or 1.3). Any value greater than zero usually signals that the key or button is pressed. inputAction does not work reliably when used in RscDisplayMission's onKeyDown event handler (the same is probably true for other input related event handlers).

Bottom Section

Posted on May 8, 2014 - 15:18 (UTC)
FlannelMouth
inputAction does not return the actual state of the queried key when a dialog screen is open. Instead, it will always return 0.

Posted on July 31, 2015 - 05:33 (UTC)
Waffle SS.
inputAction is capable of returning the state of analog inputs. This includes mouse, joystick, and even TrackIR. A joystick axis will return a value from 0 to 1, while mouse movement returns the rate of change, which can be > 1.

Right mouse click is currently not supported, but right mouse hold is. http://feedback.arma3.com/view.php?id=25015

更多维基

随机维基