Jump to content

abhijan123

Member
  • Content Count

    126
  • Joined

  • Last visited

  • Medals

Posts posted by abhijan123


  1. config

    class UserActions

    {

    class bgmfire

    {

    displayName="Launch Nirbhay";

    position="bgm";

    radius=90;

    condition="((count crew this)>0)";

    statement="[this] exec {\su30mki\launch.sqs}";

    };

    Launch

    Its picking up the target position and calling the missile launch. Iwant to remove useraction here once target position is picked up

    _Sub = _this select 0;

    JLammo = 1

    ?(JLammo <= 0):goto"END"

    _targetX=0;

    _targetY=0;

    bgm_Attack=false;

    bgm_Pos=[0,0,0];

    hint "Select target on the map"

    onMapSingleClick {bgm_Pos=_pos;bgm_Attack=true;}

    #Loop

    ?(!bgm_Attack):goto"Loop";

    _targetX=bgm_Pos select 0;

    _targetY=bgm_Pos select 1;

    JLammo=JLammo-1

    _Sub removeAction 9

    ~3

    _Sub setobjecttexture[5, ""]

    [_targetX,_targetY,_Sub] exec"\su30mki\Fire2.sqs";

    ---------- Post added at 22:20 ---------- Previous post was at 20:21 ----------

    one more question

    is it possible to get locked target coordinates of a missile?

×