Results 1 to 6 of 6

  Click here to go to the first Developer post in this thread.  

Thread: Help with BIS_fnc_wpWinchLoad

  1. #1

    Help with BIS_fnc_wpWinchLoad

    I made a very simple mission to test the scripted version of setting a WinchLoad waypoint following the Wiki.

    This is what I put into the init field of my chopper:

    PHP Code:
    nul = [thisvictim0501nil, {hint "Rescuer died!"}, {hint "Dude saved"}] spawn BIS_fnc_wpWinchLoad
    Everything works as expected except for one thing: The loadCode part (e.g. {hint "Dude saved"}) is executed as soon as I select the "Deploy rope" action whereas the Wiki says this should only execute when a person is loaded into the helicopter.

    Am I missing something here?

    My goal is to use the loadCode in order to move the victim and rescuer back into cargo positions. If this can be done otherwise/easier I'm all ears

    Any input is appreciated.


    "Nothing is so firmly believed as what is least known." - Michel de Montaigne


  2. #2
    Well, the Biki page for that function is pretty confusing. The example gives 8 arguments while the details only show 5... I'd have to open it in game to see how it really works, but I'm guessing it's because you have 'nil' as your person-to-be-rescued so since there's no value for that it's assuming you did it just fine.

  3.   This is the last Developer post in this thread.   #3

    Take On Arguments

    Quote Originally Posted by kylania View Post
    Well, the Biki page for that function is pretty confusing. The example gives 8 arguments while the details only show 5...
    Because it's custom waypoint function, as stated in description. First 3 arguments (common for all custom waypoints) are described on special page and you can access it by clicking the link in syntax section. I hoped it's clear enough, but apparently not. I'll try to make it even more obvious.


    As for loadInit param, it was wrongly described, I fixed it. Thanks for finding it
    Alpha is alpha.

  4. #4
    Staff Sergeant daikan's Avatar
    Join Date
    Dec 14 2006
    Location
    Earth
    Posts
    272
    Author of the Thread
    Okay, that makes more sense now

    Although in that case I wonder how to go about moving the rescuer and victim back into the cargo once they have been winched up? And also: How can the pilot be notified once the rescuer gets hold of the victim?

    Quote Originally Posted by kylania View Post
    [...] I'm guessing it's because you have 'nil' as your person-to-be-rescued so since there's no value for that it's assuming you did it just fine.
    "nil" is passed so the default is taken for the person going down on the rope (2nd crew member).

  5. #5
    Staff Sergeant daikan's Avatar
    Join Date
    Dec 14 2006
    Location
    Earth
    Posts
    272
    Author of the Thread
    Giving this a bump to see if anyone can give some input regarding my follow-up question:

    Quote Originally Posted by daikan View Post
    (...) I wonder how to go about moving the rescuer and victim back into the cargo once they have been winched up? And also: How can the pilot be notified once the rescuer gets hold of the victim?

  6. #6
    Ye same here, some of these commands just are not working for me, probs im doing it wrong. Trying to Fast rope a team but cant seem to get these custom waypoints right. Also is flyinheight still in use because it doesnt seem to make a difference to the hover height of the chopper?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •