Forum Jump :

Author Message


Posts: 5
Rank:


Level: Member

Country: uk
Location: South East
Occupation: Communications
Age: 45
In-game name:

 
#1 Posted at 2010-11-16 20:43        
     
I am trying to get a helo extraction script working in Domination 2, so far I have got it working (using Kylania's exellent planned extraction script) just one problem, you can call the extraction chopper (using radio) multiple times at once, this causes a lot of lag & looks ridiculous. I realise the easy answer is to not press the radio call more than once, but you know what its like, there's always one person online that will ;-) .

I have also tried it as an addaction, but this has the same effect.

What I would like is to have the call system simular to artillery, e.g you press once & it takes a few mins before it's available again,
anyone got any ideas how this can be done?

Trigger: on act (set to repeated)
nul = [player] execVM "plannedExtraction.sqf";


Many Thanks Signaller


Author Message

palyarmerc  

I live inside the editor


Posts: 753
Rank:


Level: Member

Country: uk
Location:
Occupation: *Retired from ArmA*
Age:
In-game name: Paly

 
#2 Posted at 2010-12-06 12:13        
     
Would need to see the script, but surely it only needs for a parameter to check if the helo is already available.
I assume the helo re-spawns upon it's demise - so just set a code that does not allow for more than one helo by that name in the mission
so...in a radio trigger "condition : !(alive helo)"

....that's all folks....!

Advertisement


Author Message


Posts: 5
Rank:


Level: Member

Country: uk
Location: South East
Occupation: Communications
Age: 45
In-game name:

 
#3 Posted at 2010-12-08 21:12        
     
Thanks for responding palyarmerc,

I think that's the line of code I'm looking for, many thanks m8 =)

Since posting I have managed to set up a dedicated server (running Domination 2) & to my horror found that the script doesn't work on a dedicated server.

Anyone got any ideas how to make this work on a dedi server?

Trigger: on act (set to repeated)

nul = [player] execVM "plannedExtraction.sqf";



Author Message

palyarmerc  

I live inside the editor


Posts: 753
Rank:


Level: Member

Country: uk
Location:
Occupation: *Retired from ArmA*
Age:
In-game name: Paly

 
#4 Posted at 2010-12-13 11:22        
     
Didn't read the sqf - now that I have...

Not sure if it's possible with the BIS_fnc_spawnvehicle but if you local name your helo
medevacH = [[_start select 0, _start select 1, 50], _flightPath, _chopperType, side _unit] call BIS_fnc_spawnVehicle;
(no underscore) you can keep the global term _medevacHGroup, then the opening script should be...

if ((isServer)&&(!alive medevacH)) then { ...

not sure you can do if ((isServer)&&(!alive _ch)) but can't test it just now.

....that's all folks....!

Author Message


Posts: 5
Rank:


Level: Member

Country: uk
Location: South East
Occupation: Communications
Age: 45
In-game name:

 
#5 Posted at 2011-03-16 22:34        
     
Hi again,

Up until recently I'd shelved this project I decided to give it another go

Still having the same trouble, it just won't work on a dedi server, I think the problem may be when the script is called it can't tell who the caller is and or the trigger (see below)
 nul = [player] execVM "plannedExtraction.sqf";
I did try adding your suggestions Palyarmerc but to no avail.

Any ideas?