Jump to content

scottdog62

Member
  • Content Count

    155
  • Joined

  • Last visited

  • Medals

Posts posted by scottdog62


  1. For a mission I'm making I want to make a sniper take a shot at soldier and never miss.
    Is there a way I can do that?

    The target is going to be on top of a vehicle (M113), so i need the AI to hit him every time even if moving.
    will the AI be able to fire at targets ontop of vehicles? because sometimes they never fire.
    Also, i want to follow the bullet using bullet cam.


  2. Bulldozers has been freezing for me for some time and I have no idea how to fix it.
    The problem i have is it freezes when loading either at the start of the load or when it gets into the map like shown in the video.
    In the video buldozer loads for a long time then freezes at the end, and have to control + alt + delete to close it.


    Logs
     

    =====================================================================
    == C:\Program Files (x86)\Steam\SteamApps\common\Arma 3 Tools\TerrainBuilder\TerrainBuilder.exe
    == "C:\Program Files (x86)\Steam\SteamApps\common\Arma 3 Tools\TerrainBuilder\TerrainBuilder.exe" 
    
    Exe timestamp: 2017/03/17 16:49:03
    Current time:  2017/04/11 12:27:36
    
    Type: Public
    Version: 140800
    
    =====================================================================
    
    Application initialization finished.
    Layer 'default' successfully loaded.
    Repair tool - Operation DONE in (0.0 s)! All layers seem to be valid.
    Connecting to buldozer...
    Warning: Connection Established...
      Creating landscape...
      Texturing surface...
      Creating objects...
      Creating road network...
    Closing connection to buldozer...
    Buldozer was terminated - Buldozer no longer responding to messages.
    
      Connection automatically closed.

     


  3. Trying to work on a charge script for one of my missions, still very much a beginner.

     

    What I want atm the moment is that so when the script is activated, the AI charge(move) forward, without stops and doing all the covering and fire ect.


    I'm also looking for a way to make the AI randomly fire their weapons at different times to each other during the charge.

     

    So the script needs to be activated by the init of the squad leader.

    
    // charge script
    
    
    
    {	
    	_x setUnitPos "UP";
    	_x disableAI "FSM"; 
    	_x disableAI "Cover";
    	_x disableAi "SUPPRESION";
    } forEach units _this;
    
    _this setSpeedMode "FUll";
    
    while {{alive _x} count units _this > 0} do
    { 
    
    	
    
    	sleep 5;
    	_this setCombatMode "BLUE";
    	sleep 10;	
    	_this setCombatMode "RED";
    };


    The way I've tried making the AI fire at different intervals is by changing their CombatMode with a loop, what i want is for the AI in the squad to randomly fire differently to each other. anyone know of a good way?

     

    Serena's helped with most of my script.

    And also I've finished a few noob tutorials for arma 3 scripting, anyone know of any good tutorials that are just a step up from fockers beginner tutorial?

     

     




     


  4. Ok that works in the init.

    I'm trying now to make the script be called from 

    null=group this execvm "charge.sqf' "; 
     SquadControl = { 
    	
    	{	
    		_x setunitpos "UP";
    		_x disableAI "FSM";   
    		_x disableAI "Cover";
    		_x disableAi "SUPPRESION";
    	} forEach units _this;
     
    	
    	_this setSpeedMode "FUll";
    	_this setBehaviour "CARELESS";
    
    	while {{alive _x} count units _this > 0} do
    	{ 
    		{
    		_x setCombatMode "BLUE";
    		sleep 5;
    		_x setCombatMode "RED";
    		sleep 5;
    		} foreach units _this;
    		
    	} 
    	
    	
    };
    
    waitUntil {time > 0};
    
    grp call SquadControl;

    I want them to only take aim and shoot every 5 seconds so i'v changed there "setCombatMode".
    the problem is I don't think its working.
    I've also tried adding

    grp = group this

     

    I'm not getting any errors ingame.

     

    any help appreciated.

     


  5. Moving further into the script.

     

    { 
    _x setunitpos "up";
    _x disableAI "FSM";
    _x disableAI "Cover";
    _x disableAi "SUPPRESION";
    
    } 
     forEach units group _this;
     
     
     while {Alive leader1} do
     {
     
     {
     
     _x setSpeedMode "FUll";
     _x setBehaviour "CARELESS";
      sleep (2 +(random 4));
      _x setBehaviour "COMBAT";
      sleep (1 + (random 2));
     }
     forEach units group _this;
     };

    Leader1 is the name I gave the leader of the group. (not sure how to make it the entire squad).

    I'm trying to get the AI to change there Combat mode from CARELESS to COMBAT every few seconds.

    The problem is that the AI won't move, the leader just stays put and the squad just raises and lowers their weapons, going from COMBAT to CARELESS mode.


  6. Trying to get this simple script to work



    Charge.sqf

    { 
    _x setunitpos "up";
    _x disableAI "FSM";
    _x disableAI "Cover";
    _x
    } 
     forEach units _this;

    I'm trying to make a script, so that when i activate it in the group leaders Init box, all the AI in the squad stand up and disable FSM, ect. 

    I put

    " 'this exec "charge.sqf' ".
    in the group leaders Init box.

     

    The problem is its not working..
     And I'm unsure of the order to put the code in.
    Any help would be greatly appreciated


  7. Hey yeah sorry for the lack of information.

    1) It is the init.sqf in my mission.
    2) so it triggers on start up

     

    3) so what i want is that when the conditions are met I want them to activate. So say when I kill "target" I want it to "hint "bob is dead"."
    At the moment it runs through all the code, so when i kill target it doesn't activate the hint's and other commands. I want the way so that it activates once i kill target, ect.


  8. Trying to learn scripting

    Made a very simple script, one thing that is happening is its not being activated, only if I put a sleep command before it and activate in that time, I want it to be activate-able at any time in the mission.
     

    _target = BOB;
    _runner = jim;
    _begger = greg;
    
    
    
    
    if (!alive _target) then 
    {
    	 hint "bob is dead"; 
    	_runner globalchat "bob is dead good job"; 
    	_runner doMove (position player);
    	sleep 3;
    	hint "jim is a traitor";
    };
    
    
    
    if (!alive _runner) then 
    {
    	hint "jim is dead";
    	sleep 3;
    	_begger globalchat "please have mercy";
    };
    
    if (!alive _begger) then
    {
    	
    	_begger globalchat "Nooooooooo";
    	hint "good job";
    };



     


  9. Hey silola,

    Just finished all your Tutorials for Xcam. Xcam is great, going to save me so much time on my project.

    One thing I'm unsure of is, how to edit the objects that I'v previously placed in my terrain using terrain builder. The buildings show up in X cam but I can't move them, I know how to export objects from Xcam to terrain builder, but don't know how to do the other way.
    Is there a way to export from TB to Xcam?


  10. I keep getting error, line 27
     

    Quote

    _pos = [_startPos select 0, _startPos select 1, _missileHeight];

     

    this is what init looks like,
     

    nul=[plane, marker, Titan_AA, 100] execVM "guidedMissile.sqf"

    Where the start location is a marker. Not 100% what to put start location as.

    can Anyone help me with start location?

    and maybe with MissileType and MissileLaunching height.

    Thanks


  11. Hey,

    I'm looking to make a missile target a plane, I want the missile spawn in mid air, and then follow and hit the plane.
    I also want the camera to follow the missile, is there a way to use bullet camera to follow it?

    And lastly, need a way to make a SAM battery fire a missile in to the sky, don't need it to fire at an aircraft, just anywhere in the sky.

    Trying to make an intro, so any help would be great.

×