Hi Guys
I have a problem with a fairly simple script.
I have seen some good examples here in forum, and I have tried to make my own.
When I arrive at the helipad the script is activated, and then the sidechat just keeps going "Loop".
I have inserted all the sidechats, just to see where the script gets stuck.
But as I can see, the condition to get to the "Pickup" has been met, but nothing happens.
I have tried to input the line "Helo_1 distance H_1 < 20" in the condition-field of the trigger, and the script still gets activated, so the condition to go futher in the script must be met?
It is most likely a rookie-mistake, but can someone see the problem?
I have this in a trigger right at the Helipad :
Condition : ((vehicle Helo_1) in thisList) and ((getPos (vehicle Helo_1) select 2) < 2) && Helo_1 Distance H_1<10
On Act. : [] exec "Chopper_Transport.sqs"
Chopper_Transport.sqs
; Helo transport
;Unit = Player_1
;Chopper = Helo_1
;Helipad = H_1
;Group = Grp_1
Player_1 Sidechat "Boardingscript activated"
#Loop
~3
Player_1 Sidechat "Loop"
? Helo_1 distance H_1 < 20 Then Goto "Pickup"
~3
Goto "Loop"
#Pickup
Player_1 Sidechat "Helo reached Pickup point"
Player_1 sidechat "(Grp_1) Group 1 Boarding Chopper"
~3
{_x AssignAsCargo helo_1} forEach units group grp_1
units group grp_1 orderGetIn true
?{{_x in helo_1} count units group grp_1 == count units group grp_1} then titleText["Lets go home", "PLAIN DOWN"] and goto "Exit"
#Exit
~1
Player_1 Sidechat "Exit boarding script"
~3
Exit