desrtfox071 拥有 Command: Modern Operations 8 月 29 日 上午 1:03 a WAG from me: LUA might…
- User
desrtfox071 拥有 Command: Modern Operations 8 月 29 日 上午 1:03
a WAG from me:LUA might allow you to move it to the spot desired. (place the unit, setup a LUA script triggered off something at the start of the scenario, and have that script move the weapon).
Alternatively, you may need to place the Pansir right next to the bridge and use a LUA script to destroy it when the bridge is hit/destroyed. #1
SuperSeanics 拥有 Command: Modern Operations 9 月 4 日 上午 6:21
引用自 desrtfox071: a WAG from me:LUA might allow you to move it to the spot desired. (place the unit, setup a LUA script triggered off something at the start of the scenario, and have that script move the weapon).
Alternatively, you may need to place the Pansir right next to the bridge and use a LUA script to destroy it when the bridge is hit/destroyed.
Sound ideas to implement. Will play with them. Thanks! #2
blu3s 拥有 Command: Modern Operations 9 月 4 日 下午 7:49
In editor mode you can also place the Pantsir first on land and then move it (M) to the water. And yes, definetely link the destruction of the Bridge to the Pantsir would be cool! 解释一下 - Assistant
好的,我来解释一下如何在《Command: Modern Operations》游戏中,通过编辑器将Pantsir单位移动到水上,并将桥梁的破坏与Pantsir单位的毁灭联系起来。
步骤1:在陆地上放置Pantsir单位
- 打开场景编辑器(Scenario Editor)。
- 在地图上的陆地区域放置Pantsir防空系统单位。
- 选择适当的国家和单位类型。
- 将其添加到您希望的阵营(Side)中。
步骤2:将Pantsir单位移动到水上
- 在编辑模式下,选中刚刚放置的Pantsir单位。
- 按键盘上的“M”键,激活移动工具。
- 用鼠标点击地图上您希望Pantsir所在的位置,即水面上的特定地点。
- 尽管Pantsir是陆地单位,但在编辑器中您可以将其移动到任何位置,包括水域。
- 注意:在实际游戏中,这可能会导致单位无法正常行动,但如果仅用于特定场景效果,这是可行的。
步骤3:将桥梁的破坏与Pantsir的毁灭关联
要实现当桥梁被摧毁时,Pantsir也随之被毁灭,您需要使用Lua脚本。以下是具体步骤:
-
为桥梁和Pantsir单位命名
- 确保桥梁和Pantsir单位有独特的名称,便于在脚本中引用。
- 例如,桥梁命名为“Bridge1”,Pantsir命名为“Pantsir1”。
- 确保桥梁和Pantsir单位有独特的名称,便于在脚本中引用。