i need to know how i can make it so that when a unit right clicks on a certain vehicle it will go inside it as in load the unit into it and be able to control that vehicle. and when the unit leaves it loses control of the vehicle
You can make them go it and it will be yours, the only problem is that it won't work when they leave the vehicle. Please tell me you aren't amking LOAP
nah those are too confusing, well can you tell me how to then? its alright if it doesnt lose control though.
Btw say that im making a smoke grenade and when its used in an area all the units in the region become invisible while they are still in that region. is that possible?
not actually having done it, just peculation, but...
give the vehicle a new cargo hold abilty for only one person (or 2 or 3 or 4, depending on what you want), and the associated load and unload abilities. I don't see what would really be so hard about that.
As for the smoke gren thing, a series of triggers like so (done without world edit):
SmokeGren Event: -A unit begins the effect of an ability Conditions: -Ability being cast equal to Smoke Gren Actions: -Create a region centred on target point of ability being cast of height 200 and width 200 (or similar, not sure how the action really reads) -Set SmokeGren=Last created region -Add to EnterSmokeGren.gen the event 'A unit enters SmokeGren' -Add to LeaveSmokeGren.gen the event 'A unit leaves SmokeGren'
EnterSmokeGren Event: - Conditions: - Whatever you want Actions: -Give entering unit the ability Invisible
LeaveSmokeGren Event: - Conditions: - Whatever you want Actions: -Remove Invisible from leaving unit
umm that might work... i dont have much luck with triggered spells on the first time round tho... usually takes me the better part of a week to do it right (big confidence boost for you )
bort, you forgot about the units already in the location.
imported_Bort
#8
exactly why my spells don't work the first time... it should read like so:
SmokeGren Event: -A unit begins the effect of an ability Conditions: -Ability being cast equal to Smoke Gren Actions: -Create a region centred on target point of ability being cast of height 200 and width 200 (or similar, not sure how the action really reads) -Set SmokeGren=Last created region -Add to EnterSmokeGren.gen the event 'A unit enters SmokeGren' -Add to LeaveSmokeGren.gen the event 'A unit leaves SmokeGren' -pick every unit in SmokeGren and give picked unit the ability Invisible -wait (x) seconds -pick every unit in SmokeGren and remove Invisible from picked unit -remove(i think?) events from EnterSmokeGren and LeaveSmokeGren
EnterSmokeGren Event: - Conditions: - Whatever you want Actions: -Give entering unit the ability Invisible
LeaveSmokeGren Event: - Conditions: - Whatever you want Actions: -Remove Invisible from leaving unit
Probably the order string. I think there is a right-clicking trigger to let you commandeer a vehicle
Events Unit started the effect of an ability Conditions Ability equal to unload (I checked the order string) Actions Give triggering unit to neutral Do what else you need