| 10-07-2003, 01:28 AM | #1 |
im also trying to get it so that transport A will only move when there is a unit inside it, and when that unit either leaves or dies, it stops moving. |
| 10-07-2003, 01:45 AM | #2 |
That one would be simple, just make it at map initialization, it freezes the transport via a Pause Unit function. Then, when a unit enters said transport (unit enters, unit is transport), unpause. When a unit leaves it, pause it again. |
| 10-07-2003, 01:52 AM | #3 |
but if the transport is paused could the unit enter? |
| 10-07-2003, 01:53 AM | #4 |
I think so... Better give it a try, though, to make sure. |
| 10-07-2003, 02:08 AM | #5 |
also, wats the trigger for when a unit unloads or leaves the transport? |
| 10-07-2003, 06:53 PM | #6 |
anyone? emote_sweat |
| 10-07-2003, 06:57 PM | #7 |
its no trigger, all you need add the loading/unloading (unit ability) to your unit. There are many version of it though, such as borrows, zepplin, ships. |
| 10-07-2003, 07:44 PM | #8 |
make the transport neutral passive and give it the invaluablity abillity. Transport should be preplaced if possible, then create a region on the preplaced unit. (les name it TransportRegion) Create a unit variable named TransportUnit Create a player varibable named TransportPlayer trigger#1 E- a unit enters TransportRegion C- entering unit is a hero equals to true <----(or whatever) A- set TransportUnit = (entering unit) A- set TransportPlayer = owner of(TransportUnit) A- Run trigger#2 (ignoring conditions) A- turn on trigger#3 A- turn of this trigger trigger#2 A- change ownership of (click the preplaced transport here) to TransportPlayer and change color A- remove invaluablity from (click the preplaced transport here) trigger#3 (intinally off) E- a unit issues order with no target C- issued order equals to order(unload) A- change ownership of (click the preplaced transport here) to neutral passive and change color A- add invaluablity from (click the preplaced transport here) A- Region center TransportRegion on position of(TransportUnit) A- wait 1-3 secs A- Turn on trigger#1 A - turn off this trigger I hope I didnt miss anythin... |
| 10-07-2003, 09:19 PM | #9 |
event transport is issued an order targetting an object transport is issued an order targetting a point transport is issued an order with no target condition order issued not equal to order(stop) event wait .001 issue order(stop) to transport condition is important to prevent a continual loop, wait is important to let unit recieve its prior order and then get stopped, in testing I used a longer wait time which caused slight movement, this value might needed to modifed, not sure. If you use the triggers I wrote to deal damage while units were aboard the ship, then you can add in to the load, to shut off the movement trigger listed here. and add a check to the back of the unload trigger that checks if occnum=0, then turn on trigger listed here. |
| 10-12-2003, 03:48 AM | #10 |
when u pause a unit, it cant load |
| 10-12-2003, 04:10 AM | #11 |
set its speed using triggers instead. setting it to 0 will still allow units to enter(I think) |
| 10-12-2003, 04:11 AM | #12 |
set its speed using triggers instead. setting it to 0 will still allow units to enter(I think) |
| 10-12-2003, 04:11 AM | #13 |
set its speed using triggers instead. setting it to 0 will still allow units to enter(I think) |
| 10-12-2003, 04:23 AM | #14 |
it can still move at 0 though |
