Forum Jump :

Author Message


Posts: 2
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2011-02-18 09:29        
     
I am trying to set an artillery strike to a waypoint trigger so as my friendlies drive away from the objective it is utterly destroyed. I initially wanted to have them blow up an antenna and pull off but I cant figure that out either. I have only been playing with the editor for a week, im probably posting in the wrong place, and I am getting super frustrated because the arty idea seems like something I should be able to google and I cant find anything on it. Someone help me out.


Author Message


Posts: 1470
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2011-02-18 12:50        
     
You have a few options such as Artillery and Virtual Artillery but as these take quite a bit of setting up and are not much use against moving targets it's better to fake it.

Just save the script as "artillery.sqf" and put this line null=["ARTY_Sh_122_HE",target,0.8,220,30,50]execVM "artillery.sqf" in a trigger set to go off when you need. Name the Vehicle Target


//null=["ARTY_Sh_122_HE",target,0.8,220,30,50]execVM "artillery.sqf"
_ammotype  = _this select 0;//ARTY_Sh_122_HE    type of ammo to be used
_target    = _this select 1;//target of artillery fire
_delay     = _this select 2;//0.8 delay between each shell
_height    = _this select 3;//220 height shells will fall from
_amount    = _this select 4;//30 total shells fired
_spread    = _this select 5;//50 how close they will be to the target


for "_x" from 1 to _amount do {
	_targetpos = [getPos _target select 0, getPos _target select 1, _height];
	_Strike = createVehicle [_ammotype, _targetpos, [], _spread, "NONE"];
	_Strike  allowdamage false;
	_Strike  setvectorup [0,9,0.1];
	_Strike setvelocity [0,0,-200];
	sleep _delay;
	}; 


Advertisement


Author Message


Posts: 2
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2011-02-18 16:33        
     
AWESOME!
OH, the Possibilities. That will keep me entertained for the rest of the day. Thank you.


Author Message


Posts: 429
Rank:


Level: Member

Country: us
Location:
Occupation: Retired
Age: 57
In-game name:

 
#4 Posted at 2011-02-18 16:33        
     
Or you could have used my ECHO fire director package to do the job.

I am fear.