Jump to content

genterprise

Member
  • Content Count

    11
  • Joined

  • Last visited

  • Medals

Posts posted by genterprise


  1. Hello,

     

    I tried to write some scripts that show a "hint" message to the player that causes a character   damage.  Then store the value into a variable (global) that at te end of the match I have a pop up showing the Score - which is Equal to the amount of damage a player did.

     

    I made a trigger that fires at the start of the match which contains

    myscore = 0; 

    myString = " ";

     

    then I have a second trigger that (condition)  fires when (for this example) one of the 3 enemies (named tango1, tango2 and tango3

    !alive tango01 || !alive tango02 || !alive tango03;

    but it seems to only fie off when I kill the first enemy, not on the other 2

     

    then in the On Act. Box I have: 

    myscore = myscore +200;

    myString = getText (myscore);

    hint "Kill +200";

    hint myString;

     

    I am only seeing the Message "Kill+200" when  I kill the first tango.

    I never get the Message showing the value of myString

    And no messages when I kill the other 2 enemy ai.

     

    Please help!


  2. Hello,

    I am creating a Hold and Defend Mission. There is an area on the Map as an objective to be captured and held. I would like to spawn in an Air Unit at the airport, when a side (opfor or blufor) has control of the objective.

    I would like for the Aircraft to be of the nationality of the capturing side!

    If you can point me in the right direction and/or explain to me how to do this, I will appreciate it.

    I am totally new to scripting for ARMA, so please make it elementary for me.

    Again I thank you in advance!


  3. Can we place a trigger on the un paved runway that when the plane hits that part of the runway, it activates the trigger, that then give the plane the speed and what ever needs to be set for it to be able to take off. (Maybe Flap Position also). If that is possible, how would such the script and or trigger read. (I have the idea - but I am new to the scripting here sorry).

    Thanks


  4. Before you guys do more rocket science to just spawn a plane and a pilot... :)

    Place the functions module in the editor.

    _vec_array = [markerPos "some_marker", random 360, "A10", west] call BIS_fnc_spawnVehicle;

    That's it. Paramters and return values:

    Parameter(s):

    _this select 0: desired position (Array).

    _this select 1: desired azimuth (Number).

    _this select 2: type of the vehicle (String).

    _this select 3: side or existing group (Side or Group).

    Returns:

    Array:

    0: new vehicle (Object).

    1: all crew (Array of Objects).

    2: vehicle's group (Group).

    The function will add the correct crew members, fill up all crew positions and will spawn aircrafts in the air, aka flying.

    Xeno

    *****************

    Forgive me - I am totally new to this. How do I "Place the functions module in the editor."

    Also, how do I then call the Function.

    I have read over and over where people give functions and name stuff like a noobie to scripting for ARMA knows where to even put the stuff they talk about.

    Thanks...


  5. Wow - that was a fast response. And it was very clear!

    Thanks!!!!!

    I chose ARMA for my PC Leagues War Game/Simulator because it is the best out there for PC (and as far as I am concerned evem beats the consoles).

    I decided to start making a few Tournament Ready Multiplayer Maps. I had no idea how great the user support is for this game also. Thanks Much!

    It worked like a charm....

    SIncerely,

    Gabriel

    PS - is there a guide that gives the names of commands and how they can be used in scritping (say the scripting language alond with syntax?) If so please direct me. Thanks Again!!!!


  6. I have spent an hour looking through my search responses and have not found an answer.

    There is a house (more like a hangar on a runway) object id 144163, I am going to do a bomb run un it and want to know how to make a trigger to give me a message (maybe using "hint") to let me know if the building is destoryed.

    I am brand new to this ARMA2 editing and scritping and have spent hours reading in order to find answers to this and other questions.

    Please help.

    Also, I have noticed that a lot of you guys give "answers" but you dont give help. I am a technical instructor and what has made me so good at it is that I can answer technical questions with people that are not yet technical but explain in a way they don't feel intimidated but yet get it. Many of you on here are very talented at scripting but are not gifted with explaining to a beginner. So please keep in mind this is my first ARMA2 endeaver. I Know javascript, vbscript, visual basic, java and some others, but this ARMA 2 Scripting is not registering please help!!!

    Thanks!!!

×