Home   Help Search Login Register  

Author Topic: special camera........  (Read 1084 times)

0 Members and 1 Guest are viewing this topic.

Offline supershooter

  • Members
  • *
  • 2+2=4
special camera........
« 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?

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re: special camera........
« Reply #1 on: 16 Jul 2006, 19:15:20 »
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

Code: [Select]
?! (local server): exit

assuming the "cutscene pc" is acting as server, else just remove the "!"

Offline supershooter

  • Members
  • *
  • 2+2=4
Re: special camera........
« Reply #2 on: 17 Jul 2006, 19:12:19 »
Sorry. I dont have clue what to do with that script.

Offline Seven

  • Members
  • *
  • Am I a llama?
Re: special camera........
« Reply #3 on: 17 Jul 2006, 21:24:39 »
What Myke is telling you is to put this line
Code: [Select]
?! (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:
Code: [Select]
?! (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
....
....

Offline supershooter

  • Members
  • *
  • 2+2=4
Re: special camera........
« Reply #4 on: 19 Jul 2006, 19:05:44 »
Perfect. Cheers people.


-solved-

-solved-

-solved-

-solved-

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re: special camera........
« Reply #5 on: 21 Jul 2006, 23:03:26 »
Since you say it is solved, then select the solved button to close the thread.