OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: hobson_matt on 05 Apr 2003, 10:00:05

Title: Re-supplying mid-mission
Post by: hobson_matt on 05 Apr 2003, 10:00:05
Hi, quick mission question,  i want to re-supply my troops mid-mission after a radio call, to wherever my troops are.  Am thinking of some sort of link with moving a "H" to where my troops are and having a waypoint in the area, but is there any good way to do it over a large area?  Is it possible to "setpos" waypoints?

I did try searching, but got nothing!!   :-[
Title: Re:Re-supplying mid-mission
Post by: dmakatra on 05 Apr 2003, 18:46:19
DonÂ't setpos anythin. Just put this in the on act field.

choppername commandmove getpos playername

or sumthin.
Title: Re:Re-supplying mid-mission
Post by: Flapje on 06 Apr 2003, 11:16:13
dunno if commandmove is right. if it isn't, try domove. if it is, please tell me  ;D
Title: Re:Re-supplying mid-mission
Post by: macguba on 06 Apr 2003, 20:35:08
If it helps ....


wapoint setWPPos position
Operand types:
    wapoint: Array
    position: Array
Compatibility:
    Version 1.21 required.
Type of returned value:
    Nothing
Description:
    Set waypoint position. Waypoint is in format Waypoint. Position is in format Position2D.

Example:
    [groupOne, 1] setWPPos getMarkerPos "MarkerOne"