Fortran
Jul 6 2009, 07:12
Hi guys,
Just trying out a very simple CAS script to allow the player to call in an A-10, is all working fine but I need the A-10 to be indestructible to allow it to fullfil is duty to the player until it runs out of fuel (or time) and is removed from the gameworld.
So far have this:
_plane = [position spawnaten, 0, "A10", side player] call BIS_fnc_spawnVehicle
_a10 = creategroup WEST;
_plane join grpNull;
_plane join group player;
this addEventHandler ["HandleDamage", {false}];
However it is still getting shot down and destroyed when testing against some highly skilled AA guns.
Have also tried this:
_plane = [position spawnaten, 0, "A10", side player] call BIS_fnc_spawnVehicle
_a10 = creategroup WEST;
_plane join grpNull;
_plane join group player;
_plane addEventHandler ["HandleDamage", {false}];
But no joy, where am I going wrong with this?
Any help would be greatly appreciated. Also is it possible to set the skill level of the A-10 in this script?
Just trying out a very simple CAS script to allow the player to call in an A-10, is all working fine but I need the A-10 to be indestructible to allow it to fullfil is duty to the player until it runs out of fuel (or time) and is removed from the gameworld.
So far have this:
_plane = [position spawnaten, 0, "A10", side player] call BIS_fnc_spawnVehicle
_a10 = creategroup WEST;
_plane join grpNull;
_plane join group player;
this addEventHandler ["HandleDamage", {false}];
However it is still getting shot down and destroyed when testing against some highly skilled AA guns.
Have also tried this:
_plane = [position spawnaten, 0, "A10", side player] call BIS_fnc_spawnVehicle
_a10 = creategroup WEST;
_plane join grpNull;
_plane join group player;
_plane addEventHandler ["HandleDamage", {false}];
But no joy, where am I going wrong with this?
Any help would be greatly appreciated. Also is it possible to set the skill level of the A-10 in this script?