SkaceKamen / random-infantry-skirmish

RIS mission for Arma 3
14 stars 4 forks source link

Fix spawn in group #43

Closed romabysen closed 1 year ago

romabysen commented 1 year ago

Fix issue where player ends up far away from the skirmish when using spawn to "My group unit".

SkaceKamen commented 1 year ago

Hey, I pity you that you had to go through my terrible code :D Unfortunately, this mission wasn't written with multiplayer in mind and I've only stapled it on after it was mostly done. Also, I don't have experience with making multiplayer missions.

I think you've correctly identified where the issue is, but the fix itself is not entirely correct. I think the issue is that for the leader, there's no call to the _usable function which checks that the soldier is not already assigned to another player. This probably leads to the mission trying to put the player into a soldier that already has another player in it, which leads to the player being stuck in the placeholder body at the airport.

The proper fix is this: https://github.com/SkaceKamen/random-infantry-skirmish/pull/44

SkaceKamen commented 1 year ago

I'm closing this because #44 most likely solved the issue. Thanks for the help!