Home   Help Search Login Register  

Author Topic: walk slow without CombatMode "SAFE"  (Read 685 times)

0 Members and 2 Guests are viewing this topic.

Offline andersson

  • Members
  • *
  • I'm a llama!
walk slow without CombatMode "SAFE"
« on: 09 Jun 2003, 00:49:10 »
If I remember it correct you could have units to walk slow in AWARE mode in earlier patches?

I use 1.91 and all my units are running everywhere if not in SAFE mode. ThatÂ's annoying!!!!

I tried to set their behaviour this way;

unit SetSpeedMode "LIMITED"
unit SetCombatMode "STEALTH"
unit SetUnitPos "UP"

And it worked. Now they are going slowly with their weapons ready.

But then there was another problem (as usual.....), it worked when they had waypoints. I use a script  (snYpirÂ's "Group Respawn Script"") and there they areÂ'nt moved by waypoints, if IÂ've got it right..? So they are running again.....

My question: How to get units to WALK, not run, with their weapons ready without using waypoints?

*edit*
Offtopic
Btw i dislike that SAFE-mode with their weapons on the back. IF you carry your weapon on the back you have the barrel pointing down!  >:(
« Last Edit: 09 Jun 2003, 00:57:51 by andersson »

Komuna

  • Guest
Re:walk slow without CombatMode "SAFE"
« Reply #1 on: 09 Jun 2003, 15:28:49 »
Ok. The drastic solution: ? speed _MySoldier > 15 : _mySoldier SetDammage 1

I belive they'll learn in time... ::)

But lets get on the real isue [It was about time]:

You want them to walk without waypoints, through scripting, right? But even using the commands:

unit SetSpeedMode "LIMITED"
unit SetCombatMode "STEALTH"
unit SetUnitPos "UP"

, they'll still run like desperates, right?

It's starting to seem impossible to find the solution, yet, if you show us the script (by snypir) we could get a solution, probably it's just a question of scripting. Look that AI act in different ways if you use both 'move' and 'domove' commands...

We'll be wayting ;)

Offline andersson

  • Members
  • *
  • I'm a llama!
Re:walk slow without CombatMode "SAFE"
« Reply #2 on: 09 Jun 2003, 16:06:47 »
Ok!

The script used are 3 scripts by snYpir;
http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_7
look at the "Group Respawn Script".

Then I tried two different solutions to change the units SpeedMode and UnitPos.

First I did it by adding it to the array(?) in the trigger executing the scripts;
[respawn_trigger,"STEALTH","RED",100,"LIMITED","UP"]
where ,"LIMITED","UP" are my changes. I changed the necessary in "respawn.sqs" and "respawn_grp.sqs" and I got it working. No probs there.

When the units still ran I tried to use the original scripts and activate a simple script from the same "respawn_trigger".

simple_script.sqs;

~3
unit SetSpeedMode "LIMITED"
unit SetUnitPos "UP"
exit

The result was the same.
Then i figured out that the problem must be when the units are ordered around by GameLogics and not by waypoints.

So please take a look at it and if theres something that I didnt explain good enough I can try to explain better or mail the testmission to anyone that want to help me.  :)

So there it is... :-\

IÂ'm thinking of making my own script where I move the units AND their waypoints. Respawn shouldnt be a problem when IÂ'm making a MP-mission.
What do you think?


Offline andersson

  • Members
  • *
  • I'm a llama!
Re:walk slow without CombatMode "SAFE"
« Reply #3 on: 09 Jun 2003, 17:17:34 »
ok... now I know better... You cant move "real" waypoints....

  :-\

Offline andersson

  • Members
  • *
  • I'm a llama!
Re:walk slow without CombatMode "SAFE"
« Reply #4 on: 09 Jun 2003, 20:09:36 »
HAHA!!!  I didnt know better then!   "SetWPPos"!!! Wonderful!

I think I solved my problem. But it only works in multiplayer.

It was "simple". I move the whole group with their waypoints using a script to random places around a trigger triggered when you walk into it. The same script sets their behaviour,speed and unitpos. Another script activates when IÂ'm detected -> all units change their behaviour, speed and unitpos for 60 sec and after the paus resets them to walk slowly and ready along their random waypoints.

If they get killed they spawn as usual at "respawn_east" and when I walk into next trigger they get moved in a random place with their group somewhere around the new trigger.

And so on and on...   :)

So now I can get lost in the djungles of Ia Trang and never know where Charlie is.. Or how many they are.... :-\  All I know is that they never stop patrolling the djungles   ;D

I leave this topic unlocked for a while because I havent tested it as a finnished map.
And maybe someone has something to add?