Home   Help Search Login Register  

Author Topic: Glitch in my Setpos and Move  (Read 402 times)

0 Members and 1 Guest are viewing this topic.

Mr.BoDean

  • Guest
Glitch in my Setpos and Move
« on: 11 Jun 2004, 23:32:58 »
Hi All!  I've been absent for a while ... my life demanded that I take a break from OFP and gaming for a while but I'm back discovering some great new addons and additions to this awesome game.  :D

Meanwhile, still trying to finish a mission....  :-*

I've got this issue which occurs about 60% of the time where a Ural and  a group of soldiers are setpos'ed somewhere and then the driver is supposed to drive the troops into town for deployment. Sometimes he does, many times he doesn't. Plenty of fuel, Move WP's but the driver must be smokin' something. :P

UralS (With driver)
INIT.: URALS setfuel 0

REGroup Soldiers (separate group from UralS)
-placed next to Urals-
INIT: REGroup = group this

In a Trigger:
URALS setPos GetMarkerPos "UrSM"; "_x moveInCargo URALS" forEach units REgrp; URALS setFuel 1; papabear sideChat "INTEL REPORTS Blah, blah,blah."


URALS has a Move Waypoint ..Full...Careless About a 100yds. ahead of where he is facing, yet he is unmotivated.

I know I tried several different options with this prob before, since sometimes the truck would arrive without the troops. Should I add a DoMove somewhere for the URalS?
  ???

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Glitch in my Setpos and Move
« Reply #1 on: 11 Jun 2004, 23:47:24 »
If it works sometimes, and not others, and it doesn't work for different reasons, it seems to me that there is something going wrong in the execution of the code.  

For test purposes, create a little script which is called when the trigger fires.    Get the instructions into a good order, so that only one thing is happening at a time.   I know it shouldn't make any difference, but as you know OFP is a fickly mistress.    LEave the waypoint on defaults of normal speed and aware, till its working reliably, then mess with stuff like that if you really need to.

;script sketch

"_x moveInCargo URALS" forEach units REgrp

~3

"_x assignAsCargo URALS" forEach units REgrp
(can help avoid problems when getting them out again)

~3

URALS setPos GetMarkerPos "UrSM"

~1

URALS setFuel 1

~1

papabear sideChat "INTEL REPORTS Blah, blah,blah."


Obviously test it with yourself as ural driver and leader/member of the group.

I know all that doesn't really amount to an answer, but it might help.    The only other thing I can think of is that the spot it is setpossed to is difficult for the truck for some reason:  try moving it a few yards.    

And welcome back!
Plenty of reviewed ArmA missions for you to play

Mr.BoDean

  • Guest
Re:Glitch in my Setpos and Move
« Reply #2 on: 14 Jun 2004, 08:16:37 »
Hey Mac ....good to be back and see you're still hangin' around OFPEC.  ;D

SO... I tried the simpler solution of moving the setpos area ...worked a few times but still not consistent. I figured out that sometimes the truck would arrive with troops but no driver. I guess he got tired of waiting in a truck with no fuel and jumped out before it got setpos'ed.   :beat:  lol

Shoulda been a simple operation with WP's and triggers, but oh well.
Ultimately , I decided to just script the whole deal, but I had some problems getting the troops out of the truck. I tried
action "eject"
and  something like ordergetout true , but ended up using

unit leavevehicle truck ,
knowing there must be some other way ....couldn't get the ComRef to come up under Chris' OFP editing tool ...  ???