PDA

View Full Version : Indestructible CAS



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?

jackass888
Jul 6 2009, 08:12
too complicated... a10 allowDamage false. Havent tried tho if it works on any vechicle

TurokGMT
Jul 6 2009, 10:08
might be the pilot is getting nailed through the A10's armour.

maybe try spawning an empty plane nice and high and moving a separate pilot onboard?

Cloughy
Jul 6 2009, 11:57
too complicated... a10 allowDamage false. Havent tried tho if it works on any vechicle

It works on A10s, i tested yesterday to make the AA light up the sky.
But as someone else said, make the pilot seperate and give hime the allowdamage false command.

Cheers
GC

Tajin
Jul 6 2009, 12:46
no need to create the pilot seperate.


this allowDamage false; driver this allowDamage false;

Fortran
Jul 8 2009, 20:30
Many thanks guys, works a treat. Appreciate your assistance!