Home   Help Search Login Register  

Author Topic: standing position  (Read 671 times)

0 Members and 1 Guest are viewing this topic.

ori

  • Guest
standing position
« on: 20 Sep 2005, 20:58:14 »
hmmm isnt it posible...to make a script that makes a unit automatic kneel or stand position and not go laying down when its under fire when its near a objectlike buildings ?? and  make a enemy unit stand up or kneeling instead of laying down when your only 2 meters away from a enemy unit  ...its looks  very unreal..... ya got  very close to an enemy unit and it going lay down on the ground  It could be handy with hand to hand combat :)
 ???


sorry for my bad englisch but i hope you understand

ori

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:standing position
« Reply #1 on: 20 Sep 2005, 21:50:20 »
this setunitpos "UP" is probably what you're looking for, unless I misunderstand?  :)
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

ori

  • Guest
Re:standing position
« Reply #2 on: 21 Sep 2005, 17:10:25 »
hmmm not quite i mean at the moment ai will go laying down when you are getting near them , i want that ai will keep on standing position when you are 2\4 meters away from them

if a unit is 50 meters away from you its logic that he finds cover by laying down on the groundr but you dont find cover by getting down to the grouynd  when a enemy unit is stand right in front of ya.  your probaly try hand to hand combat :P


Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:standing position
« Reply #3 on: 21 Sep 2005, 17:27:18 »
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 playername

2. in on activation, type: [enemyguy,player] exec "stand.sqs"

Code: [Select]
_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"

Code: [Select]
_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  ;)
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Kyle Sarnik

  • Guest
Re:standing position
« Reply #4 on: 21 Sep 2005, 20:59:07 »
hmmm not quite i mean at the moment ai will go laying down when you are getting near them , i want that ai will keep on standing position when you are 2\4 meters away from them

if a unit is 50 meters away from you its logic that he finds cover by laying down on the groundr but you dont find cover by getting down to the grouynd  when a enemy unit is stand right in front of ya.  your probaly try hand to hand combat :P



Usualy I would also respond with a complicated, heavily scripted solution, but greg, your script isn't what he is looking for, he wants something that will make the AI act more intellegent, not something that will manipulate the AI's behaviour.

Ori, have you tried setting the skill to 1 (all the way to the right) on the AI? I noticed that units with higher skill aren't so quick to go prone at the first sign of danger.