PicVert 0 Posted August 21, 2003 I have made a script for the chopper land and the gunner and driver be unassigned from the chopper but right after they are out , they come back to the chopper and getin ?? How can I stop that, without use the code allowgetin false. Some one has an idea ? PicVert Share this post Link to post Share on other sites
RED 0 Posted August 21, 2003 Post your script here and someone will sort it out. RED Share this post Link to post Share on other sites
PicVert 0 Posted August 21, 2003 There it is <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _chopper = _this select 0 bla bla bla bla bla bla .... ..... #lowfuel _chopper setfuel 0 _chopper sidechat format ["(%1) I need fuel here!", name _chopper] unassignvehicle gunner _chopper unassignvehicle driver _chopper exit I hope you can find a solution without the code : allowgetin it will crap all. Share this post Link to post Share on other sites
Chris Death 0 Posted August 21, 2003 I can't test this right now, as i'm at work, but you have to think about one important thing: gunner _chopper driver _chopper will be no more referable by your script, once they are out of the chopper. You should put them both into variables, before having them disembark, or you will nomore be able to access them. _gunner = gunner _chopper _pilot = driver _chopper very often in scripts i noticed that this is also necessary to get things to work. example: [choppername] exec "xxx.sqs" _chopper = _this select 0 works _gunner = gunner _this select 0 doesn't work as far as i remember _chopper = _this select 0 _gunner = gunner _chopper then again works maybe your problem will be found there :edit - what i mean is: that you maybe can't unassignvehicle gunner _chopper but you can _gunner = gunner _chopper unassignvehicle _gunner ~S~ CD Share this post Link to post Share on other sites
PicVert 0 Posted August 22, 2003 I tried, but error unknow operator ¦#¦unassignvehicle...  an idea ? I have defined like that : <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #loop blabla _pilot = driver _chopper _gunner = gunner _chopper unassignvehicle _pilot unassignvehicle _gunner goto : "loop" Share this post Link to post Share on other sites
Doolittle 0 Posted August 22, 2003 Set the helicopters damage up so it can't move. Â The AI will automatically jump out. Doolittle Share this post Link to post Share on other sites
toadlife 3 Posted August 30, 2003 Try this... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _foo = driver _chopper _bar = gunner _chopper [_foo,_bar] ordergetin false unassignvehicle _foo unassignvehicle _bar ...or you may need to reverse the command, but I dont think so. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _foo = driver _chopper _bar = gunner _chopper unassignvehicle _foo unassignvehicle _bar [_foo,_bar] ordergetin false Share this post Link to post Share on other sites
PicVert 0 Posted August 30, 2003 YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS :P thanks m8 toadlife you're platine ;) PicVert Share this post Link to post Share on other sites
toadlife 3 Posted August 30, 2003 Glad it worked. As for why this happens, when a soldier is in a vehicle he is: A) Been assigned a spot in the vehicle and... B) Ordered to get in the vehicle When you run the unassignvehicle command on a unit, all it does is remove the unit's assignment for that vehicle. The unit is still under orders to be in that vehicle, so once they vacate their assigned spot, they will imemdiately reboard the vehicle, only they will take the spot of their choice. Share this post Link to post Share on other sites