Hi!
I'm not sure how COGs work in multiplayer so I'd like to ask some questions if you don't mind...
1-RAND_CEL-: Let's say I have a surface with the material of a TV that has 8 cels. Then I make a COG so that when I activate the TV, it will play sound and a movie will show. Now the COG won't play the cels in order but randomly. Sort of like this... pulse: SetWallCel(tv,rand()*7); Let's say it is a guy who speaks and his lips move randomly. Now I wonder, When I activate this TV I see and hear the man speak as I activate it, but will the other players see and hear the man speak as I activate it?
2-ACTIVE_OR_NOT-: I make a COG that will move something, and in this COG I have an int (let's say on). When I activate a switch the on will become 1 preventing the switch from being activated again until on is 0. Will this apply to the other players?
3-TELEPORTING-: I make a COG that teleports a player when he hits the switch. But if I just say... activated: If(GetSenderRef()==switch) { TeleportThing(GetLocalPlayerThing(),destination); will that teleport only the one who press the switch or everyone?
4-COMPLEX-: I've made a complex COG that opens a door, fills a sector with water and gives a lot of thrust like if the water comes pouring in. I wonder, will all players in that sector get thrusted about, or only he who opened the door?
5-AI_CREATION-: I've been thinking of making an Actor that gets created in a spot and then will move in random directions. I have this feeling that if I say x=rand, etc, everyone will see him go one way but it won't be syncronized. One might see him turn left at the same time as someone else might see him turn right. Any suggestions?
6-CAM_LOOK-: A COG that makes a nice little Cut-Scene before the fight. A guy hosts, he sees the Cut-Scene first. The camera moves and shows stuff. A guy joins a little later, what happens, will this guys COG kick in and move the camera back to frame one, or will everyone's views all of a sudden return to camera 1, or what? And if any of these things happen, how can I sepperate the different views so that Host guy sees the movie from beginning to end and the joining guy sees it without inturrupting the Host guy?
That's it for now! Please reply soon!
/Edward
------------------
If only the world was easy...
I'm not sure how COGs work in multiplayer so I'd like to ask some questions if you don't mind...
1-RAND_CEL-: Let's say I have a surface with the material of a TV that has 8 cels. Then I make a COG so that when I activate the TV, it will play sound and a movie will show. Now the COG won't play the cels in order but randomly. Sort of like this... pulse: SetWallCel(tv,rand()*7); Let's say it is a guy who speaks and his lips move randomly. Now I wonder, When I activate this TV I see and hear the man speak as I activate it, but will the other players see and hear the man speak as I activate it?
2-ACTIVE_OR_NOT-: I make a COG that will move something, and in this COG I have an int (let's say on). When I activate a switch the on will become 1 preventing the switch from being activated again until on is 0. Will this apply to the other players?
3-TELEPORTING-: I make a COG that teleports a player when he hits the switch. But if I just say... activated: If(GetSenderRef()==switch) { TeleportThing(GetLocalPlayerThing(),destination); will that teleport only the one who press the switch or everyone?
4-COMPLEX-: I've made a complex COG that opens a door, fills a sector with water and gives a lot of thrust like if the water comes pouring in. I wonder, will all players in that sector get thrusted about, or only he who opened the door?
5-AI_CREATION-: I've been thinking of making an Actor that gets created in a spot and then will move in random directions. I have this feeling that if I say x=rand, etc, everyone will see him go one way but it won't be syncronized. One might see him turn left at the same time as someone else might see him turn right. Any suggestions?
6-CAM_LOOK-: A COG that makes a nice little Cut-Scene before the fight. A guy hosts, he sees the Cut-Scene first. The camera moves and shows stuff. A guy joins a little later, what happens, will this guys COG kick in and move the camera back to frame one, or will everyone's views all of a sudden return to camera 1, or what? And if any of these things happen, how can I sepperate the different views so that Host guy sees the movie from beginning to end and the joining guy sees it without inturrupting the Host guy?
That's it for now! Please reply soon!
/Edward
------------------
If only the world was easy...