Jump to content
Sign in to follow this  
Fortran

Indestructible CAS

Recommended Posts

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?

Share this post


Link to post
Share on other sites

too complicated... a10 allowDamage false. Havent tried tho if it works on any vechicle

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

no need to create the pilot seperate.

this allowDamage false; driver this allowDamage false;

Share this post


Link to post
Share on other sites

Many thanks guys, works a treat. Appreciate your assistance!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×