wld427 1705 Posted January 16, 2009 in my version of a domination mission i have a hangar where a soldier can spawn a few vehicles to use. acction sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> action1 = _unit addaction ["Deploy Landrover MG","deploy.sqs","Landrover_MG"] deploy sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _veh = _this select 3 ?(_veh == "Landrover_MG") : goto "Landrover_MG" #Landrover_MG _unit = player _unitpos = getpos _unit _uX = _unitpos select 0 _uY = _unitpos select 1 _uZ = _unitpos select 2 _hmg = "Landrover_MG" createvehicle [_uX+1,_uY+1,_uZ] _hmg addEventHandler ["killed",{_this exec "killed.sqs"}] exit the killed sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _vehicle = _this select 0 ~25 removevehicle _vehicle exit and here is the error i get..... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Error in expression <removevehicle _vehicle> Error position: <_vehicle> Error Missing; any idea how to fix this? Share this post Link to post Share on other sites
UNN 0 Posted January 16, 2009 The correct command is DeleteVehicle, not RemoveVehicle. Share this post Link to post Share on other sites