Fandom

武装突袭 Wiki

SelectionPosition

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

  Arguments of this scripting command don't have to be local to the client the command is executed on

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Search for selection in the object model (first in the memory level, then in geometry LODs).


Returns position in model space. In A1 it returns the initial position of the selection, in A2/3 position of the selection (e.g. when it is animated) in render time scope. If a selection does not exist [0,0,0] is returned.

基本句法

句法:
object selectionPosition selectionName
参数:
object: Object

selectionName: String
返回值:
Array - in format PositionRelative ([x,y,z] relative position in model space)

替代句法

句法:
object selectionPosition [selectionName, LODName]        (Since Arma 3 v1.49.13166)
参数:
object: Object

[selectionName, LODName]: Array

selectionName: String

LODName: String - LOD name, one of the following:

  • "Memory"
  • "Geometry"
  • "FireGeometry"
  • "LandContact"
  • "HitPoints"
返回值:

Array - [x,y,z] relative position in model space

范例

范例1:
_inModelPosition = player selectionPosition "head_hit";

范例2:
_inModelPosition = player selectionPosition "pelvis";

范例3:
_inModelPosition = player selectionPosition "head";

范例4:
_inModelPosition = player selectionPosition "camera";

额外资讯

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

modelToWorld

注意事项

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

Notes

Posted on January 5, 2007 - 12:24
Giova
To know more selections simply create an eventHandler damage on an object.

Bottom Section

Posted on July 29, 2015 - 09:35 (UTC)
Jezuro
Since 1.49.131660, you can use an alternative syntax:

object selectionPosition [selectionName, lodName]

lodName: "Memory", "Geometry", "FireGeometry", "LandContact", "HitPoints"

If the given selectionName is not found in the given lod, [0,0,0] is returned.

更多维基

随机维基