So you want the enemy to act normally, but when you get close to them you what them to stand up whatever?
1. make a trigger, and have its condition to
enemyname <5
playername2. in on activation, type: [enemyguy,player] exec "stand.sqs"
_enemy1 = _this select 0
_player1 = _this select 1
_enemy1 dowatch _player1
_enemy setunitpos "UP"
exit
That will makethe enemyguy standup when the player gets 5m close to him.
The make another trigger and put
enemyname >5
playername in its condition.
in on activation, type: [enemyguy,player] exec "stand2.sqs"
_enemy1 = _this select 0
_player1 = _this select 1
_enemy1 dowatch (edit this to a different unit name)
_enemy setunitpos "AUTO"
exit
That
should work, but I'm not a scripter, so don't be suprised if it doesn't