Home   Help Search Login Register  

Author Topic: problems with multiplayer cutscene  (Read 725 times)

0 Members and 1 Guest are viewing this topic.

ronin-thc

  • Guest
problems with multiplayer cutscene
« on: 24 Sep 2003, 11:41:21 »
Hi there,

I'm not very good at scripting, especially cutscenes. I wrote a script that camcreates two planes which should just fly straight ahead over an enemy base. Here's the beginning of the script:


plane1 = "A10LGB" camcreate [(getpos airspawn1 select 0), (getpos airspawn1 select 1), (getpos airspawn1 select 2) + 60]
plane2 = "A10LGB" camcreate [(getpos airspawn2 select 0), (getpos airspawn2 select 1), (getpos airspawn2 select 2) + 60]

plane1 setdir 90
plane2 setdir 90

plane1 setvelocity [150, 0, 0]
plane2 setvelocity [150, 0, 0]

cutpilot1 moveindriver plane1
cutpilot2 moveindriver plane2

cutpilot1 doMove getpos cutpos
cutpilot2 doMove getpos cutpos

plane1 flyinheight 60
plane2 flyinheight 60

_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"]

#loop
;hinter jets
_camera camSetTarget plane1
_camera camSetPos [(getpos plane1 select 0) -10, (getpos plane1 select 1), (getpos plane1 select 2) +5]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera



;Schleifenabbruch
?plane1 distance falconbase < 200: goto "endloop"
?plane1 distance falconbase > 2000: goto "endloop2"
if(not alive cutpilot1 and not alive cutpilot2) then {goto "endloop2"}
~0.01
goto "loop"
#endloop
...

cutpilot1 and 2 are already placed on the map.

Now, when I test it, it works nearly perfect, as long as you do not play it in multiplayer. In mp only on the server it works fine, on the other computer (I only tested it with server and one client, I think it's the same for all clients...) the planes immediately roll over to the left and crash into the ground. And in addition to that the loop will never end though I think the pilots should die in the crash.

Anyone who can help me?

Ronin