Jump to content
Sign in to follow this  
Hovis

Stay Put You Morons!

Recommended Posts

Hi folks, I'm making a co-op mission with a squad as the playable unit but due to the small area the mission is focused in (defending a farmyard) I want the AI members of the squad out the way until the players respawn as one of them.

The ideal would be to have these characters spawn in a barn and hit the dirt until a player takes control of one of them, however I don't know how to stop them doing stuff.

Any suggestions?

Share this post


Link to post
Share on other sites

So I think I've got it, but I can't make it work. I'm trying the following command in the squad leader (named 'lead'wink_o.gif init line:

{_x disableAI "move"} foreach unit group lead

This gives me an 'missing;' error. So the syntax is evidently wrong, any ideas how?

Share this post


Link to post
Share on other sites

Shameless bump cos this is doing my head in and I would rather learn how to do it properly rather than just tell each individual in turn do disableAI.

Anybody know the correct command line to disable a groups movement AI?

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{_x disableAI "move"} forEach units(group this)works for me.

i think you missed the 's' in units wink_o.gif

edit: i put "this" in there so it needs to be in the init field of one of the units of the group. otherwise substitute "this" with the name. also i put the brackets in just for clarity - it works without them, too.

Share this post


Link to post
Share on other sites

Or just put "dostop this;" in each of the group members' Init lines.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×