Jump to content
Sign in to follow this  
addicted

problem with init after respawn

Recommended Posts

Hello

I'm beginner at scripting and I'm trying to make multiplayer mission. I'm using script to let only selected slots for driving armoured vehicles. I have trigger on act. I wrote this

drivr = driver ebv1;if !((driver ebv1) in h1pilots) then {drivr action ["eject", ebv1]; call RE;};

in init I wrote

h1pilots = [ec1,ec2,ec3];

where ec1 or ec2 or ec3 are names for soldiers slots. Script works till first death. After it even this slots can't drive armoured vehicles. I decided to add code from init to to script which will add all items to soldiers after their death and now it works perfect. My question is - Is it possible to write it in better way in init.sqf to make it works without adding it in soldiers equip script?

Share this post


Link to post
Share on other sites

Thanks for try , sadly no. Like i wrote if I put this to every soldier gear script all works fine. I supose that there is a method to write it i init.sqf properly to make it work without writing it in other place.

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  

×