Jump to content
Sign in to follow this  
Undeceived

Setunitpos commanded by player is stronger than scripted setunitpos

Recommended Posts

I noticed that when the player commands an AI subordinate to lay down, he will stay down, even if a script tells the unit to stand up again later.

This is a problem since I want that AI unit to take the lead later in the mission (and at that time the player won't be able to command him to stand up again). He just won't stand up even though I script

unit setunitpos "UP";

and even

unit switchmove "";

He just stays down resp. gets down again immediately after the switchmove.

Do you know a way to work around this?

Is there a way to "simulate" a players command?

Or is there a "stronger" code than the simple setunitpos?

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  

×