Sennacherib 0 Posted September 1, 2007 someone could tell to me, how to avoid that the crew die in their tank. this is really annoying, after 2 shots, the tank is empty, all the crew is dead. i have try in a tank cpp to change passthrough=1 to 0, but nothing. + armorgunner=100000; (lol) same thing for the commander etc, but nothing. i like big tank battles, but with that, this is simply impossible. Share this post Link to post Share on other sites
RN Malboeuf 12 Posted September 1, 2007 use scripts like in libmod (heal_crew.sqs) Share this post Link to post Share on other sites
Sennacherib 0 Posted September 1, 2007 i try already to understand your scripts. i like also the script which avoid the destruction of tanks. could you explain to me which scripts are used in this case? Share this post Link to post Share on other sites
RN Malboeuf 12 Posted September 1, 2007 if you are nor experienced scripter i wont be able to explain liberation script work and if you are experienced one you'll understand it by yourself. Basicly use [tank] exec "heal_crew.sqs" attached to hit EH. Share this post Link to post Share on other sites
Sennacherib 0 Posted September 1, 2007 ok, thx. i'm going to try. Quote[/b] ]if you are nor experienced scripter alas, i'm a noob in scripting. i just need basic scripts. i'm just fed up with the dead crew especially for a panther tank, after 2 shots, the tank is empty thx for your help. btw if i use the heal script, i can release the addon with it? Share this post Link to post Share on other sites
RN Malboeuf 12 Posted September 1, 2007 Quote[/b] ]btw if i use the heal script, i can release the addon with it? "heal script" ? It's two lines long - do whatever you want with it Share this post Link to post Share on other sites
AtStWalker 0 Posted September 1, 2007 ah nice script Share this post Link to post Share on other sites
Sennacherib 0 Posted September 1, 2007 ok thx. btw that doesn't work. the lines in the cpp: class EventHandlers { hit= "[tank] exec ""\britM4\lib_scripts\heal_crew.sqs"";"; }; i tried also with: hit= "[britM4] exec""\britM4\lib_scripts\heal_crew.sqs"";"; the crew is always wounded or dies Share this post Link to post Share on other sites
Pulverizer 1 Posted September 2, 2007 Try hit= "_this exec ""\britM4\lib_scripts\heal_crew.sqs"";"; [tank] couldn't possibly work unless the particular vehicle was referenced by a variable named tank. Share this post Link to post Share on other sites
Sennacherib 0 Posted September 2, 2007 thx. ok i have tried. but this is always the same thing. the crews are wounded. the script: _obj = _this select 0 { if(_x in _obj AND alive _x) then {_x setdammage 0} } foreach [driver _obj,gunner _obj,commander _obj] exit sad to be a noob at scripting Share this post Link to post Share on other sites