Jump to content

SilverRanger

Member
  • Content Count

    108
  • Joined

  • Last visited

  • Medals

Community Reputation

11 Good

About SilverRanger

  • Rank
    Sergeant
  1. not sure if what you want can be done... the problem is that you assign the action to the unit's vehicle NOT the unit itself _Act = [color="Blue"]vehicle _player addaction [/color]["Pull out Player from vehicle", "Pullout.sqs"] and so _Player = _this select 0 will not return the unit inside the vehicle, but the vehicle the unit is riding in there is a possibility to exploit a bug in OFP that retains the action assigned to a unit even if the unit is inside a vehicle, but that's not 100% certain...
  2. mySniper setunitpos "up" => this will keep the unit standing mySniper disableAI "move" => this will keep it from moving
  3. SilverRanger

    To delete a waypoint

    if the location you need to escort the VIP is for instance your 2nd waypoint add a trigger somewhere use this condition: !(alive VIP) activation: [group player,2] setwppos (getpos (vehicle player)) this will place the 2nd waypoint directly above your unit and thus activate it
  4. SilverRanger

    magazines array

    I have already considered the ammo command, but it's not reliable for my purpose the "throw" weapon uses both handgrenades and smokeshells as mags so if you have 0 handgrenades and 1 smokeshell, the script will return 1 and 1, while "throw" ammo player will return 1. I need a way to tell if the given unit is carrying more handgrenades or more smokeshells. I already wrote a simple config to add two separate throw weapons (1 for grenades and 1 for smokeshells), but I now need to add more grenade types and I really don't want to be adding more throw weapons for each new type...
  5. SilverRanger

    magazines array

    you my friend are a god damn genius! :notworthy: it worked! :D however, I now have a more disturbing problem... when I throw all my handgrenades, the script still returns 1! oddly enough, it returns 0 if I just drop them :( _magazines = magazines player hint format ["%1",_magazines] _handgrenades = {_x == "handgrenade"} count _magazines _string = format ["%1",_handgrenades] cuttext [_string,"plain down",1] any thoughts?
  6. SilverRanger

    magazines array

    my problem is not how to display the result, but the result itself "handgrenade" count magazines player returns 0
  7. SilverRanger

    magazines array

    I'm having some trouble understanding why the magazines command returns an array that doesn't seem to function properly. I'm writing a small script that needs to count the number of a specific magazine, but the magazines array, while formated properly, doesn't seem to work I did a quick search in the forums but couldn't find any relevant posts so I wrote this script to test it _magazines = magazines player hint format ["%1",_magazines] _handgrenades = "handgrenade" count _magazines _string = format ["%1",_handgrenades] cuttext [_string,"plain down",1] ~1 ? "handgrenade" in _magazines : hint "player has handgrenades" the hint box correctly shows all magz the player holds, but the _string returns a 0 even though the player has handgrenades on him. in _magazines doesn't seem to work either am I doing something wrong? is there a workaround to this problem?
  8. SilverRanger

    WW4 Modpack 2.1

    I think he wants to adjust the init speed of the bullet so it can reach further
  9. SilverRanger

    OFP Addon request thread

    Sapper released a Zil-157 pack that has an armored version of the truck with an attached Dshk machinegun
  10. SilverRanger

    Map Click Movements for Units??

    yes, yes and yes :) the onMapSingleClick command works like any other command line. think of it as an init line or like calling a script. once you define it, you simply click on the map and the command executes whatever code you put between the quotes for instance onMapSingleClick "invisibleH setpos _pos ; [Helo6,1] setWPpos _pos , [Helo6,2] setWPpos _pos ; [Helo6,3] setWPpos _pos ; player setdammage 0 ; skiptime 5 ; ...etc"
  11. SilverRanger

    Map Click Movements for Units??

    this is what you are looking for... example: onMapSingleClick "[Helo6,1] setWPpos _pos"
  12. SilverRanger

    OFP Addon request thread

    http://forums.bistudio.com/showthread.php?p=1812233#post1812233
  13. SilverRanger

    OFP Addon request thread

    I can think of a couple of more, but again not defined for east side UKF Landrovers and Operation Frenchpoint Vehicles Pack have very nice looking models. also the Swedish Forces Pack contains a large selection of vehicles, but it's a huge pack to download if all you need is a couple of armored cars.
  14. SilverRanger

    OFP Addon request thread

    there is the Otocar Cobra from the Turkish Union addons, but I can't remember if it is for east or west side. there are of course a bunch of BRDM addons you can try if that's what you are looking for...
×