|
Post by leetchi on Nov 15, 2017 16:49:14 GMT
Hello everyone, I just download the Basic locomotion controller for unity.
I wonder if it's possible to use two 3rd person controller in the same scene?
I want a splitted screen with 2 players.
My problem is about the input. when i change the axis name in the inspector the script still using the default axis ( horizontal and vertical).
if someone can help me it would be nice.
Thanks
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 15, 2017 16:57:37 GMT
Hello everyone, I just download the Basic locomotion controller for unity. I wonder if it's possible to use two 3rd person controller in the same sce I want a splitted screen with 2 players. My problem is about the input. when i change the axis name in the inspector the script still using the default axis ( horizontal and vertical). if someone can help me it would be nice. Thanks Hello! You can absolutely do it! Go to vThirdPersonController.cs (I dont know whats it like in locomotion), go to line 30 and comment out gameObject.destroy. This way it will enable you to have 2 players. I dont know if this is multiplayer, if so I (with a bit of assistance) am working heavily on a addon to assist with that. When you said Input, have you looked at the unity couchwars video? Here it is: unity3d.com/learn/tutorials/topics/multiplayer-networking/couch-wars-local-multiplayer-basics Hope this helps!!! Cheers! Xalo
|
|
|
Post by tharindu on Nov 15, 2017 17:22:55 GMT
Hello everyone, I just download the Basic locomotion controller for unity. I wonder if it's possible to use two 3rd person controller in the same scene? I want a splitted screen with 2 players. My problem is about the input. when i change the axis name in the inspector the script still using the default axis ( horizontal and vertical). if someone can help me it would be nice. Thanks Hello and welcome to the forum. According to my understanding you cannot do it. The controller supports only a single player as an instance of the vThirdPersonController, so even if you some how duplicate the objects, when you press down on keys I expect both characters to move.
|
|
|
Post by tharindu on Nov 15, 2017 17:23:26 GMT
Hello everyone, I just download the Basic locomotion controller for unity. I wonder if it's possible to use two 3rd person controller in the same sce I want a splitted screen with 2 players. My problem is about the input. when i change the axis name in the inspector the script still using the default axis ( horizontal and vertical). if someone can help me it would be nice. Thanks Hello! You can absolutely do it! Go to vThirdPersonController.cs (I dont know whats it like in locomotion), go to line 30 and comment out gameObject.destroy. This way it will enable you to have 2 players. I dont know if this is multiplayer, if so I (with a bit of assistance) am working heavily on a addon to assist with that. When you said Input, have you looked at the unity couchwars video? Here it is: unity3d.com/learn/tutorials/topics/multiplayer-networking/couch-wars-local-multiplayer-basics Hope this helps!!! Cheers! Xalo Have you done this before ? Are you sure you can do it ? Would be nice to see a video if you have.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 15, 2017 19:25:18 GMT
Hello! You can absolutely do it! Go to vThirdPersonController.cs (I dont know whats it like in locomotion), go to line 30 and comment out gameObject.destroy. This way it will enable you to have 2 players. I dont know if this is multiplayer, if so I (with a bit of assistance) am working heavily on a addon to assist with that. When you said Input, have you looked at the unity couchwars video? Here it is: unity3d.com/learn/tutorials/topics/multiplayer-networking/couch-wars-local-multiplayer-basics Hope this helps!!! Cheers! Xalo Have you done this before ? Are you sure you can do it ? Would be nice to see a video if you have. I am going to be traveling for a few days, as soon as I get back I will work on it. It might end up being a very small addon. Cheers! Xalo
|
|
|
Post by tharindu on Nov 16, 2017 0:01:15 GMT
Good luck xD
|
|
|
Post by leetchi on Nov 16, 2017 14:35:20 GMT
Hi and thanks for your answers.
First i didn't find the line you are talking about in the script. About the input i seen this video and I already add the input axes for the second player. I named it Horizontal1 and Vertical1* The problem is : When i place mon second character in the scene, in the inspector I have a parameters box that allows me to choose the input for a character. But even if i change that parameters mon 2 characters still react the the same input axis.
if you have an idea?
Thanks.
|
|
|
Post by tharindu on Nov 16, 2017 14:44:10 GMT
Hi and thanks for your answers. First i didn't find the line you are talking about in the script. About the input i seen this video and I already add the input axes for the second player. I named it Horizontal1 and Vertical1* The problem is : When i place mon second character in the scene, in the inspector I have a parameters box that allows me to choose the input for a character. But even if i change that parameters mon 2 characters still react the the same input axis. if you have an idea? Thanks. Refer to the answer I posted. It won't work. The controller is intended for single player. No multiplayer split screen etc.
|
|
|
Post by leetchi on Nov 16, 2017 15:09:48 GMT
And no other solution so ?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 16, 2017 15:11:38 GMT
Hi and thanks for your answers. First i didn't find the line you are talking about in the script. About the input i seen this video and I already add the input axes for the second player. I named it Horizontal1 and Vertical1* The problem is : When i place mon second character in the scene, in the inspector I have a parameters box that allows me to choose the input for a character. But even if i change that parameters mon 2 characters still react the the same input axis. if you have an idea? Thanks. Refer to the answer I posted. It won't work. The controller is intended for single player. No multiplayer split screen etc. Yeah I see your point now, I thought it was possible but apparently it wasnt. Cheers! Xalo
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 16, 2017 15:18:02 GMT
And no other solution so ? I guess not in the core itself... Crazy elaborate idea: Try using Unity events so it can turn off script for player 1 but on for player 2, sort of like server and client if thats even possible in a non-networked environment. I do not know if it will work, but just brainstorming ideas Cheers! Xalo
|
|
|
Post by tharindu on Nov 16, 2017 15:23:57 GMT
And no other solution so ? None so far, sorry Invector has made it clear that there's no plans for multiplayer involved in this controller for the time being. Besides what you're asking for is a split screen, that cannot be done with the controller on the same pc, as the controller is a singleton object (supports only one instance of a kind).
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 16, 2017 15:45:18 GMT
And no other solution so ? I guess not in the core itself... Crazy elaborate idea: Try using Unity events so it can turn off script for player 1 but on for player 2, sort of like server and client if thats even possible in a non-networked environment. I do not know if it will work, but just brainstorming ideas Cheers! Xalo Yeah I don’t know what I was thinking there. My bad If you really are looking for MP then I am making a addon for it already. Cheers! Xalo
|
|
|
Post by zpetsnaz on Jan 22, 2018 11:23:47 GMT
The Invector team has confirmed for me that is in fact possible to add a split screen option / Additional character tothe scene:
They said there is a verification at the vThirdPersonController / vThridPersonInput script to remove any instance of the controller if one already exists in the scene. You just simply have to remove it to add more players/ characters.
I have no idea what that means. They have not been helpful in adding any additional information. Can anyone figure it out?
Thanks
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 22, 2018 12:15:13 GMT
Ah missing link type stuff!! Instance is what’s keeping it at 1 player, the verification is the only thing limiting the player/players. Well done dude!
About the code, try to find a function called instance. And try to edit the Singleton I think.
Cheers! Xalo
|
|