Warcraft III resources & community, 2003–2006 · archived

entering vehicles help

11 posts
#1

entering vehicles help

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
#2
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
#3
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?
#4
Just pause all units in the vicinity, and create a black filter over players who camera bound are over the target
#5
ok but wut about the vehicle thing?
#6
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 :P)

Bort
#7
bort, you forgot about the units already in the location.
#8
:wink: 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

that looking better Angelusz?

Bort
#9
ok. but what about the vehicle part?
#10
umm if u can find an event where a unit is unloaded ill help you with it
#11
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