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 » Sat Jan 27, 2018 4:47 pm

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: 351
Joined: Mon Aug 18, 2014 6:00 pm

Post by abcdefg30 » Sun Jan 28, 2018 9:52 am

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: 198
Joined: Mon Aug 04, 2014 6:38 am
Location: Kastamonu, Turkey

Post by MustaphaTR » Sun Jan 28, 2018 5:47 pm

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 » Sun Jan 28, 2018 11:53 pm

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