This isn't possible, is it?
I'm trying to do all of the following at once:
(1) Have several groups of playable units distributed randomly at predefined locations. ("Who goes where" is random, but the possible locations are pre-specified). These will be the players in the mission.
(2) Assign specific markers showing where each group was placed.
(3) All players must be able to see these markers during briefing.
(4) All of this must be done in briefing, before the mission starts.
I can't seem to get them all to work. (1) is no problem by itself, I've got that part working. Number (2) can be done with setmarkerpos, but the computer must know where to stick the markers. Which brings us to (3) : setmarkerpos is local, so changing a marker's position on one computer has no bearing on where it is on another computer.
That's no problem if all clients run the same script with setmarkerpos, like as follows:
;logic1, logic2...etc are game logics
"marker1" setmarkerpos getpos logic1
"marker2" setmarkerpos getpos logic2
"marker3" setmarkerpos getpos logic3
"marker4" setmarkerpos getpos logic4
exit
BUT it doesn't seem to work when (4) the position that the markers are going to is being changed in briefing, before the game starts. So, for example, the following will
not work, according to my tests in a pseudo-MP environment (running 2 instances of OFP on my computer):
;moving the logics
logic1 setpos getpos logic5
logic2 setpos getpos logic6
logic3 setpos getpos logic7
logic4 setpos getpos logic8
;setting the markers to their positions
"marker1" setmarkerpos getpos logic1
"marker2" setmarkerpos getpos logic2
"marker3" setmarkerpos getpos logic3
"marker4" setmarkerpos getpos logic4
exit
During briefing, it seems that the logics are only moved on the server's computer. The clients won't move the logics until after the game has started, and they'll set the markers where the logics were before moved.
And no, I don't think it's just a problem with game logics as soldiers don't seem to work, either.
Does anyone know of a way to get what I'm after, above? I think I'll just have to either drop the random placement at the beginning, or not have markers at the beginning. I'm not excited about either possibility.
My script, designed for the mission I'm making, is attached below, for anyone who wants to get a clearer picture of where I'm trying to go. It would be run straight from init.sqs .
P.S.: While researching for this post I realised that I might be triggering FADE on my computer by running two instances of OFP at once, so I won't do that anymore (
see thread). But frankly I don't think that's the problem, it seems more likely to be a locality issue as BIS isn't likely to deter warezers by screwing up convoluted marker scripts.
EDIT: Wrong attachment!