武装突袭 Wiki
Advertisement
  

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.08

描述

描述:
Sets a location's side. The default side is Unknown.

基本句法

句法:
location setSide side
参数:
location: Location
side: Side
返回值:
Nothing

范例

范例1:
myLocation setSide resistance

额外资讯

多人游戏:
-
也可以看看:
SidesidewesteastresistanceciviliansideUnknownsideFriendlysideEnemyplayerSideside locationSide relations

注意事项

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

Notes

Posted on 16:00, 3 December 2013 (CEST)
Ondrejkuzel
For units, vehicles you can use: "array joinSilent createGroup Side", e.g. in init: "[this] joinSilent createGroup EAST;" described in the note below
Posted on 19:05, 6 August 2009 (CEST)
Jtgibson
This is a frequent question on OFPEC, but produced here because it was difficult to find an answer to. setSide does not work for men, vehicles, etc.: it is intended for locations (i.e., territory). If you want to switch a unit's (e.g., the player's) side in the middle of a battle, make the unit joinSilent a group on the given side instead. If you want the unit to become the group leader after joining, use selectLeader. I haven't tested the idea of spawning a temporary unit of that side, assigning the player to that unit, setting the player as the leader, then deleting the original unit, but I don't see why it wouldn't work. (It begs the question why we don't have a setSide object function, though.)

Bottom Section

Advertisement