OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: JasonO on 25 Aug 2006, 13:23:30
-
: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:
{_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.
-
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.
-
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
-
there is a wonderful resource called the COMREF (http://www.ofpec.com/COMREF/index.html). 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:
-
Thanks for your help bedges and 456820