点击图片可看到更多讯息
开始使用于
- 游戏:
- 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
注意事项
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.