Jump to content

almonigal

Member
  • Content Count

    3
  • Joined

  • Last visited

  • Medals

Everything posted by almonigal

  1. Hi guys. I was looking to make a trade script for a mission of mine, but i want to complicate it a bit. Since i'm not a good scripter, i'll put it like this : Let's say west buys m9 mags for makarov mags 1 for 3 and binocs for 3 stanag mags. A soldier on west side has 2 makarov mags and he wants to trade them. So he goes to a scripted truck, puts 2 makarov mags in a truck, but he needs one more. He goes to his car, realises he only has 3 stanag mags but he needs binocs, so he brings them to the truck and puts them in, hoping to find in the future one more makarov mag. At this point, is it possible for the 3 stanag mags to transform into a pair of binoculars, and still the truck will have the remaining 2 makarov mags in cargo, waiting for the third one? Thanks in advance for your help.
  2. almonigal

    addAction command

    Thank you so much, it works ! I modified it a bit : this addAction ["<t color='#A1C7A2'>[- Fill can -]</t>","can.sqf", 1, 100, true, true, "","(player distance _target < 2 && (getPosATL player select 2 ) >3 )"]; so the action becomes available only when I'm on top of the tanker wagon.
  3. Hello everyone. I have a question regarding the addAction command : Can I attach an action to an object that only becomes available as player is in a certain position relative to that object ? More specifically, I want to add an action to fill a gas canister from a tanker, but I want that action to become available only when I climb to the top of the tanker (where the hatch is). I'm suspecting it has something to do with the positioninmodel parameter ...
×