• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

entering vehicles help

Status
Not open for further replies.
Level 6
Joined
Jul 23, 2004
Messages
162
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
 
Level 6
Joined
Jul 23, 2004
Messages
162
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?
 
Level 6
Joined
Aug 29, 2004
Messages
159
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
 
Level 6
Joined
Aug 29, 2004
Messages
159
: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
 
Level 16
Joined
Sep 3, 2004
Messages
2,086
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
 
Status
Not open for further replies.
Top