HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Share control?

10-24-2002, 04:47 AM#1
Wakeman
I want to add a feature into my game that when a player slot is empty, player of the same team can type a certain key word to gain control of the unit owned by the empty slot. The only way I can think of now is change control of the units. However, as some players are supposed to control only one unit, so I used the function "random unit from units owned by player" for them initially. Therefore, change control would mess the thing up.

I know in player properties window you can choose player share control, but I guess this may make players able to share control of all teammates' units.

So any suggestion about alternative way to allow player to control the unit but not become the owner of it?
10-24-2002, 05:46 AM#2
Insaniteus
There is a trigger action perfect for this.

Player - Set aspect of alliance

All you do is make the triggering player share unit control with the dropped guy
Also, there is a boolean condition Player Group and within that is the choice Players controlled by none.

If you, 3 seconds after map initialization, use If triggers to check if a player is controled by none (aka dropped) and then give all of his units to rescue passive then you could have the playing people rescue the dropped guys.

-The Great and Immortal Lord Imperialist Insaniteus-
----------------------(One of many catch phrases from Helldion, 2nd son of the Dark Orbison Demoslasher. This one right after walking through a wall as if it wasn't even there) "Um, I seem to notice there's a hole in your wall"
10-24-2002, 08:42 AM#3
Wakeman
I considered these options already. Rescuable passive is out first as I mentioned that I don't want unit to change owner. Set alliance aspect won't work because the players are already of the same team at the beginning of the game. Maybe you can read my whole passage again so that you can understand my real problem. Thanks anyway.

Alternatively, can anyone suggest me a way to replace the function "random unit from units owned by player"? If this can be changed, then I can change owner of the units.
10-24-2002, 11:17 PM#4
Guest
A few options for you to chew on, pick what you like (or none :gsmile: )

Have a trigger that activates on the keystring, gives control of the unit, waits, say, 60-120-240-whatever seconds, then changes it back. That way after the time elapses, the player can either renew his control of the unit, or another of his allies can use it for a while.


Another option is, when control is taken of a unit in that fashion, set it to a unit variable. Have one unit variable for each player, and each player can only control one dropped player's unit at a time. When he takes control of the unit, it is set to the variable. Then when he relinquishes, give it back to the dropped player using the unit variable to refer to it.



Obviously neither of these are complete solutions, im not completely clear on what you are up to in your map, so thats the best I can do. Hope it helps.
10-25-2002, 05:25 AM#5
Wakeman
Well this is not exactly what I needed, though I'm thinking of using variables to specify the units too. Thanks anyway. Sorry guys for my poor description of the problem, which is too instrinsic to my map that it is hard for the others to understand.....

Anyway if this method fails again, I may well just skip feature.....