《命令与征服™:重制版》

《命令与征服™:重制版》

《命令与征服™》重制版合集工作坊
创建、共享和畅玩各种模组,尽情享受自定义的《命令与征服》游戏体验!还内含全新地图编辑器。欢迎回来,指挥官。
了解更多
Incia3000 22 2024 年 1 月 2 日 上午 6:51
How was patrolling enemy units done again?
Took a year break from map making and was curious to do a Commando mission where enemy units are patrolling a base. Seen this in the original maps too.
Is it just as simple as giving a moving triggers for the AI, put stationary units in the base and hope the AI use those for the moving?
I think I succesfully added pathings when they create an army and then move, but circling patrolling endless loops I'm not so sure about.
Thanks in advance.
< >
正在显示第 1 - 3 条,共 3 条留言
DDF3 40 2024 年 1 月 2 日 下午 2:01 
its a bit different from TD and RA but basically this is how it is done

Add the units you want to use to patrol to the map

Next you need a TeamType for the Patrol to follow (pat1)

So say you want them to patrol from waypoint 2 to waypoint 3

so you put in your team type #units to use , then Move to waypoint 2,guard area 5, Move To waypoint3 ,guard area 5,Loop , 0

The loop ,0 points to the command line to start the looping action (the first line is always 0)

in this case they will move to waypoint2 , then guard it for aprox 30 secs then move onto way point 3 and keep on doing that.

if you change it to
#units to use , Move to Waypoint 1, Move to waypoint 2,guard area 5, Move To waypoint3 ,guard area 5,Loop , 1

This will do the samething except it will move to waypoint 1 initially only


Then you need to Create Team via a trigger , Usually this is a timed trigger to go off soon as the game fires up


Trigger type - OneTime
Trigger event - Timer elapsed 1 (1/10 sec)
Trigger action CREATE TEAM (pat1)

You must have all of the units on the MAP for Create Team to work
In other words if i'm trying to create a team of 5 rifle infantry man and there is only 3 on the map the team wont be created.
最后由 DDF3 编辑于; 2024 年 1 月 2 日 下午 2:18
Incia3000 22 2024 年 1 月 2 日 下午 9:51 
Thanks a lot, will give this a try when I get home from work. Cheers!
Nyerguds 8 2024 年 1 月 2 日 下午 11:32 
As far as I know, TD teamtypes loop automatically, actually. In TD, "Loop:0" should never actually be needed, except in a few very odd edge cases (like pathing gunboats). I think it was mostly just put on patrol teams to easily identify them as patrol teams in the editor.

For base defense patrols, to ensure that they are maintained by the AI, as in, units get replaced when destroyed, you should also set their "reinforceable" flag.


The patrol team doesn't strictly need to already be on the map, by the way; you can perfectly let the AI produce them. That's what the "Prebuilt" flag is for. But this is generally only useful for cases where, for some reason, you don't want the patrol, or the units in it, to be present on the map from the start. Like on missions where you have a rather long primary objective before going to base vs base gameplay, and the patrol might interfere with the first part.
最后由 Nyerguds 编辑于; 2024 年 1 月 3 日 上午 1:27
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50