Jump to content
jonipetteri

Change movement speed for AI problem

Recommended Posts

I'm trying to change AI units movement speed to "FULL". 

Tried: unitname setSpeedMode "FULL"; to trigger but doesn't work.

 

Share this post


Link to post
Share on other sites

What do you expect this command should do?

setSpeedMode only affects units breaking formation and running will be preferred.

 

Cheers

Share this post


Link to post
Share on other sites
5 minutes ago, Grumpy Old Man said:

What do you expect this command should do?

 

When player enters inside of the trigger, unit should run.

Share this post


Link to post
Share on other sites
4 minutes ago, jonipetteri said:

When player enters inside of the trigger, unit should run.

That needs a move waypoint or doMove command.

Have a read.

 

Cheers

Share this post


Link to post
Share on other sites
1 minute ago, Grumpy Old Man said:

That needs a move waypoint or doMove command.

 I haven't put any waypoints, because of random patrol.

Share this post


Link to post
Share on other sites
4 minutes ago, jonipetteri said:

 I haven't put any waypoints, because of random patrol.

Well you're still being pretty vague about further details, no idea if the group is editor placed, spawned etc.

 

Cheers

Share this post


Link to post
Share on other sites
5 minutes ago, Grumpy Old Man said:

Well you're still being pretty vague about further details, no idea if the group is editor placed, spawned etc.

I've placed AI unit in the editor.

AI unit is random patrolling. For this I used Eden Enhanced option - Random Patrol.

I've attached trigger to this unit.

Trigger is activated when player inside.

When trigger activated, this unit starts to walk to players position. At this point I want this unit to run.

 

Cheers

Share this post


Link to post
Share on other sites
On 3/22/2019 at 12:12 PM, jonipetteri said:

Solved.

 

unitgroupname setSpeedMode "FULL";

yes, this works perfectly, thx! 🙂

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

×