Spawnpoint Owner association?

Information and discussion for custom maps and mods.
Post Reply
Hyzoran
Posts: 2
Joined: Sat Jan 27, 2018 4:44 pm

Spawnpoint Owner association?

Post by Hyzoran »

This is really basic but I couldn't find ANY documentation on this.

I have a skirmish map where every player starts with a pre-determined building. Only problem is, ownership is associated with a Player's numerical slot and NOT their selected spawnpoint. Logically, on multiplayer maps ownership would be associated with spawnpoints and not player join order.

Is there a way to associate actor ownership with whoever spawns on a given spawnpoint? Thanks.

abcdefg30
Posts: 641
Joined: Mon Aug 18, 2014 6:00 pm

Post by abcdefg30 »

You can look how Fort Lonestar does it (spawning a tent instead of a mcv at the spawnpoint). Otherwise your only other option would be using lua, I think.

User avatar
MustaphaTR
Posts: 203
Joined: Mon Aug 04, 2014 6:38 am
Location: Kastamonu, Turkey

Post by MustaphaTR »

You can force the player's spawnpoint, so their spawnpoint will match the slot, and they can change the slot to change the spawnpoint.

https://github.com/OpenRA/OpenRA/wiki/M ... at#players

Hyzoran
Posts: 2
Joined: Sat Jan 27, 2018 4:44 pm

Post by Hyzoran »

Alright. I appreciate the suggestions.

I might forward a feature suggestion to the team to give spawnpoints an 'alias', e.g. multi0, and multi0 no longer refers to the player in slot 0, but rather the player that spawns in point multi0, would fix the issue. Not sure what that would break though. This is essential for MP missions though.

Post Reply