Page MenuHomeFeedback Tracker

Strange joinSilent behavior
Closed, ResolvedPublic

Description

I used the rescuePOWS.sqf which you can easily find on Internet.

the rescuePows.sqf contains, between other, the following line:

{[_x] joinSilent _ldr} forEach _grp;

I wanted to rescue an heli pilot but it seems that doesn't work.
So I created both a civilian named civil and a pilot named pilot, initialized in the same way.

this addAction ["Rescue POWs","rescuePows.sqf",[POWS],1,false,true,"","(_target distance _this) < 3"];

My player contains the following init:

POWS = [pilot,civil]

When I perform the addAction on the pilot, the script is correctly called but the joinSilent doesn't do anything.

When I perform the addAction on the civilian, both civilian and pilot are included in my group.

Any idea?

Details

Legacy ID
2496989069
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

-Create a player and put the next line in the init field:

POWS = [civil,pilot]

-Create a civilian named civil with the next line in the intialization field:

this addAction ["Rescue POWs","rescuePows.sqf",[POWS],1,false,true,"","(_target distance _this) < 3"];

-Create an heli pilot named pilot with the next line in the intialization field:

this addAction ["Rescue POWs","rescuePows.sqf",[POWS],1,false,true,"","(_target distance _this) < 3"];

Take care that pilot and civilian are not grouped together.

Put the rescuePows.sqf that you can find in "additional information" in your mission directory.

Additional Information

the RescuePows.sqf, as joined file.

Event Timeline

AlainBo edited Steps To Reproduce. (Show Details)Jun 30 2013, 10:23 AM
AlainBo edited Additional Information. (Show Details)
AlainBo set Category to Scripting.
AlainBo set Reproducibility to Always.
AlainBo set Severity to None.
AlainBo set Resolution to Open.
AlainBo set Legacy ID to 2496989069.May 7 2016, 3:10 PM
MadDogX added a subscriber: MadDogX.May 7 2016, 3:10 PM

Mass closing ancient tickets with no activity for > 12 months; assume fixed or too trivial.

If this issue is still relevant in current dev build, please re-post.