darrent 0 Posted March 29, 2007 hello all, is it poss to have one of your squad invincble ? i want the guy to be able to lay some pipe bombs without getting slotted by some lucky ai shot, ive loked at the hostage way,but my guy just wants to stand about any ideals out there ? Share this post Link to post Share on other sites
thobson 38 Posted March 29, 2007 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitname addEventHandler ["Hit", {_this select 0 setDammage 0}] unitname addEventHandler ["Dammaged", {_this select 0 setDammage 0}] unitname setCaptive true Or some such Share this post Link to post Share on other sites
darrent 0 Posted March 29, 2007 yeh ive seen this somewhere else but what i can gather the game engine cant keep up with the command,how true i dont know Share this post Link to post Share on other sites
thobson 38 Posted March 29, 2007 I've had no problem. Have you tested it? Share this post Link to post Share on other sites
darrent 0 Posted March 29, 2007 not tested yet just throwing ideasl around, had a thought, i could change hime from "west" to "resistance" in the mission note pad i will try your ideal 1st though Share this post Link to post Share on other sites
thobson 38 Posted March 29, 2007 You can't change the side of a unit during a mission. But you could have a unit that looks the same but is on a different side and you swap these units using setPos. Share this post Link to post Share on other sites
thobson 38 Posted March 29, 2007 You have been replying while I have been editing - I suggest you re-read my posts they may have changed. Share this post Link to post Share on other sites
darrent 0 Posted March 29, 2007 yeh that works as you dont really get to see him close up, cheers Share this post Link to post Share on other sites