OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: supershooter on 16 Jul 2006, 13:37:49
-
Ok, I have two computers on LAN. What I want to be able to do is to have one to run a cutscene; Whilst I am at the other computer controlling a man in the scene. SO it would be a multiplayer mission, where one computer is running the cutscene and the other is used to actually have the guy 'act'. Is this possible?
-
a shot from the hips..
as i understand one of your pc's act as server. Well, the simplest way is to use a gamelogic called "server" and at the beginning of your cutscene script just insert code
?! (local server): exit
assuming the "cutscene pc" is acting as server, else just remove the "!"
-
Sorry. I dont have clue what to do with that script.
-
What Myke is telling you is to put this line
?! (local server): exitat the top of your cutscene script.
so when the cutscene starts, your pc & the other will do a check (on the cutscenescript...) to see whether it's the local server or not.
If it isn't (? !(local server):exit) it will not execute the rest of the cutscene on that pc, giving you controls back so you can be a player in the cutscene the other one has on it's pc... eh that was a long breath ;D
for example your cutscene could start like this:
?! (local server): exit
enableRadio false
_camera = "camera" camCreate [-78104.63,-13727.56,50157.81]
_camera cameraEffect ["internal","back"]
;=== 12:47:04
_camera camSetTarget [-78104.63,-13727.56,50157.81]
_camera camSetPos [4872.84,10876.24,42.19]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
....
....
-
Perfect. Cheers people.
-solved-
-solved-
-solved-
-solved-
-
Since you say it is solved, then select the solved button to close the thread.