|
发表于 2015-5-27 20:33:41
|
显示全部楼层
这是一个具体的问题。由于楼主没有说明自己的程度。所以答案可短可长。我先发一个最短版本的。
- [this] spawn
- {
- while { alive (_this select 0) } do
- {
- {
- if ( ( isPlayer _x ) && { alive _x } ) then
- {
- [_this select 0] joinGroup (createGroup East);
- };
- } forEach ((_this select 0) nearObjects ['CAManBase',20]);
- sleep 1;
- };
- };
复制代码 |
|