Jump to content

45killa

Member
  • Content Count

    17
  • Joined

  • Last visited

  • Medals

Posts posted by 45killa


  1. Yes I know how to do it, but thats with the SOM module, not pure scripting unless he made it by script which I doubt. I can show you how to do it, but I can right now since its almost 1 am and I have to get up at 6 am :(:(:(. I will post tomorrow when I get back.

    I pity you bro :D

    Actually I asked the user and he said:

    ke, first read this page

    http://community.bistudio.com/wiki/Artillery_Module

    On this site, you can find the information to set up an artillery strike

    I have uploaded the mission file to rapidshare, you can download it here

    http://rapidshare.com/files/403308816/art_movie_script.zip

    Your need 4 things:

    1 the artillery group/units

    2 the artillery module

    3 a game logic = target in the city

    4 a trigger, beside the artillery units.

    Look at the code and names that are used in these things

    The most important line of code is located in the trigger onactivation field:

    [Art12, 1000] call BIS_ARTY_F_SetDispersion; [group m12, getPosASL a1, ["IMMEDIATE", "HE", 1, 1000]] call BIS_ARTY_F_ExecuteTemplateMission;

    I read the page and I do not understand it at all :confused:

    @John1: Thank you very much, Iam going to try it out.


  2. Ok, I don't know why is working but you are right, it doesn't. Really weird thing is that Its a copy paste of a working code. But anyway here is a working code. Just tested it and it works beautifully.

    Save this as artillery.sqf:

    //Declare Variables and gets data from the array
    
    _ammo      = _this select 0;
    _target    = _this select 1;
    _delay     = _this select 2;
    _height    = _this select 3;
    _amount    = _this select 4;
    _spread    = _this select 5;
    _velocity  = _this select 6;
    _x	   = 0;
    
    
    //Sets target position 
    
    _targetPos = [getMarkerPos _target select 0, getMarkerPos _target select 1, _height];
    
    //Delays the script for the amount of time stored in _delay
    
    sleep _delay;
    
    // Loops the amount of times stored in _amount
    
    for "_x" from 1 to _amount do 
    
    	{
    		//Creates the slected _ammo at the selected _height
    
    		_artilleryStrike = createVehicle [_ammo, _targetPos, [], _spread, "NONE"];
    
    		// Sets direction of the artillery round and velocity
    
    		_artilleryStrike setvectorup [0,9,0.1];
    
    		_artilleryStrike setVelocity [0,0,_velocity];
    
    		//Delays the code for the selected amount of time
    
    		sleep _delay;
    	};
    
    
    

    And call it with (I mean put it inside the trigger):

    nul = ["ARTY_Sh_122_HE","target",2,500,30,50,-1]execVM "artillery.sqf";
    

    Let me know if it works.

    ---------- Post added at 11:30 AM ---------- Previous post was at 11:22 AM ----------

    I almost forgot, you can change the settings as you please by changing the values in the code that goes on your trigger. It is as follows:

    nul = ["ammo","target",delay,height,amount of rounds,spread,velocity of the round]execVM "artillery.sqf";
    

    Remember that the ammo and the target must be used with quotes and everything else just with numbers. the velocity has to be a negative value so it can go down instead of going up. If you change the name of the target remember to change it here too. To add an initial delay just change this:

    [color="Red"]//Delays the script for the amount of time stored in _delay
    
    sleep _delay;[/color]
    
    

    to this...

    [color="SeaGreen"]//Delays the script for the amount of time stored in _delay
    
    sleep 60; // It will activate in 60 seconds[/color]
    
    

    If you don't want to wait any time, just remove that code.

    Hey thank you verryyy much man!!!!!!!!!!!!!!!!!!!!!!!!!

    But do you know how to script that ->


  3. Do you get any script errors? You should. Never do scripting without showing the mistakes on screen. wickedstigma forgot a certain command to make it work, probably wrote it from memory, then these things happen easily. Or he "forgot" in order to challenge you. Nobody here wants to write scripts for you, only help you getting better at doing it or aid with specific problems.

    With that info, I do expect you to figure it out... Pay attention to what the error message actually tries to say. :)

    Oh and by the way, I think most of us has been through a period of "nothing works" :p

    Dude, there is no error. Everything is fine. But there is no artillery effect. So actually I did a mistake or there is something missing and I do not know how to find it out


  4. whell you could spawn artillery shells @ any height you want above the town and set the placement radius as big as you want. Get that inside a for loop for the number of shells you want and that's it. I'm working on a script called Simple Artillery Strike so Ill copy part of my code later.

    I did not understand that, could you please explain that easier?

    And thanks for the other script, it did work..

    @Raserisk: I want the enemy to destroy the town not myself and my crew


  5. First, real artillery or simulated artillery? and Second, what did you do to make it drop the GBUs?

    Where is the difference between real and simulated artillery?? :confused: I mean this is a game, I thought there is everything simulated :D :confused:

    I wrote 5 instead 1

    su25 action ["useWeapon",vehicle su25,driver vehicle su25,1];

    ---------- Post added at 10:18 PM ---------- Previous post was at 10:05 PM ----------

    But the problem is if planes drop bombs they do not really destroy much .. and they do not have enough bombs to do really big damages


  6. Hey guys,

    Iam an absolutetly beginner but I want to create a mission, in which the enemys are bombarding the village or town which my soldiers have got to defend.

    I want enemy fighter jets are dropping bombs over the town and that enemy artillery is bombarding the town too.

    So that the town at the end is totally destroyed.

    What have I got to do that this is going to happen?

    I hope somebody can help me. But do not forget, Iam a beginner. So please try to explain it in a really easy way and step by step..

    Thanks for reading.

×