Home   Help Search Login Register  

Author Topic: Move group to a position and then give them a move waypoint.  (Read 1047 times)

0 Members and 1 Guest are viewing this topic.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
 :wave: Hello

I have a script to move some groups to 3 diffrent game logics. This worked well and I can see the apearing at a game logic.

The 2nd part of the script (exactly after they are moved) I added a line so they get moved to a game logic where they must move to.
The problem I get is that they apear, but dont move to their waypoint.

The group is called ambush 1 and the following 2 lines are used to move the group to a game logic named ambush1, then to give them a waypoint to go to movelogic1 ... but it dosent:

Code: [Select]
{_x setpos getpos ambush1} foreach units ambushgrp1
{_x commandmove getpos movelogic1} foreach units ambushgrp1

Any reasons why the group want to stay where they are?

Thanks for your help.

Offline 456820

  • Contributing Member
  • **
Re: Move group to a position and then give them a move waypoint.
« Reply #1 on: 25 Aug 2006, 14:51:02 »
If i was you i would try something like.

{_x domove getpos movelogic1} foreach units ambushgrp1

I remember making a post simillar to this but that was ages ago however im sure some one said that something like
Domove command is for units and move command is for squads or something not sure whcih way around it is so experiment.

Hope it helps.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Move group to a position and then give them a move waypoint.
« Reply #2 on: 25 Aug 2006, 15:32:54 »
Hi

I released the reason why they wasnt moving because the gap I wanted them to walk through was to small, therefore they didnt know where to go. They still seemed a bit confused about running about so I replaced the commandmove with domove and now they move to their destination even better.

Just to ask another question.. I know in waypoints you can change the speed, make them engage at will... How can I make them engage at will and run with their speed FULL.

Thanks

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Move group to a position and then give them a move waypoint.
« Reply #3 on: 25 Aug 2006, 16:23:27 »
there is a wonderful resource called the COMREF. it is a list of all the scripting commands that can be used in flashpoint, including those which set the combat mode and the speed mode.

well worth a read.

hint - the clues are in 'set', 'combat mode' and 'speed mode'...  :whistle:

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Move group to a position and then give them a move waypoint.
« Reply #4 on: 25 Aug 2006, 20:18:47 »
Thanks for your help bedges and 456820