HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can someone help with this trigger...

08-26-2003, 06:36 PM#1
LiableSu5pect
Can someone tell me a trigger that when a unit enters a loading unit owned by an ally it changes ownership to the triggering unit, and when it exits the transport it changes ownership back to the orginal owner of the transport? this would be alot of help to help me implement the vehicles into my new map, or if anyone has a map with that trigger already could they send it to me cause so far im clueless into how to do this...
08-26-2003, 07:06 PM#2
Roderick
I'm not sure how the trigger exactly goes, 'cause I'm not home right now, but it should be something like this:

Make a unit event. I think there's a "enters transport" function. Now make avctions as following:

Set Transport equal to (unit transporting (triggering unit))
Unit - change ownership of Transport to (owner of (triggering unit)).

Now do a similar trigger for leaving the transport, but the action should look like this

Unit - change ownership of Transport to (previous owner).

Note that Transport is a unit variable you have to create. If you need multiple transports to be used at once, make the variable an array and create another one (integer) wich keeps count of the next transport number to be used

Example:
Set Transport[IntegerVar] equal to (unit transporting (triggering unit))
Set IntegerVar equal to IntegerVar + 1
08-26-2003, 07:15 PM#3
Raptor--
there is no 'leaves transport' event that i am aware of...