|
Post by james92corner on Apr 9, 2020 3:37:44 GMT
Hey Everyone!
So I've managed to get the download pack from page 5 error-free, but something is off with the camera it's not changing between states, I think something in the code. Also when I crash my players sit position moves and looks hilarious! hahaha
Any help would be greatly appreciated!!!
|
|
|
Post by sjl on Apr 9, 2020 17:36:51 GMT
Have you went to your INVECTOR tp camera and on the drop down under camera state and changed it to @shootermelee vehicles?
Also select the vehicle type on the vehicle controller script on the vehicle?
Those are typically over looked
If you plan to use a ladder in your game place a vSimpleTrigger and a box Collider on the ladder set as trigger and on the vSimpleTrigger on trigger drop your player prefab on both on trigger enter and on trigger exit and then select the vehicle camera controller on trigger enter and setAcitve/enable bool and uncheck the check box, And same on trigger exit but check the check box
This will enable and disable the camera controller script so you can climb and use ladders with out issues....
For what ever reason the camera controller script causes issues with use of ladders
Also from what I seen in your video you may need to adjust your seat/sitpoint to reflect the height of your vehicle...
Hope that is of some help
Best of luck, SJL
|
|
|
Post by acend111 on Apr 11, 2020 23:06:45 GMT
Hi Everyone still right here with you and its ok if you liy down and get some well deserved rest. Hoping someone will find out why the character moves the character when the game starts if not i'm looking through the problem now and will post my discoveries for ya. Oh I got so far as to turn of one of the vehicle scripts and got the character to get in but still no movy good luck everyone in these times of uncertainty.
|
|
|
Post by y2splashy on Apr 12, 2020 17:11:58 GMT
hey can someone give the newest updated version of the package for mac thanks really appreciate it.
|
|
|
Post by y2splashy on Apr 17, 2020 16:58:53 GMT
Hi Everyone still right here with you and its ok if you liy down and get some well deserved rest. Hoping someone will find out why the character moves the character when the game starts if not i'm looking through the problem now and will post my discoveries for ya. Oh I got so far as to turn of one of the vehicle scripts and got the character to get in but still no movy good luck everyone in these times of uncertainty. hey can someone give the newest updated version of the package for mac thanks really appreciate it.
|
|
|
Post by freakystudios on Apr 22, 2020 11:18:59 GMT
I too need it for Invector shooter 2.5.0 latest
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 22, 2020 16:52:45 GMT
hi, there is any link?
|
|
|
Post by sjl on Apr 25, 2020 14:44:48 GMT
I too need it for Invector shooter 2.5.0 latest Here is the link to what I redid of the add-on that is using unity 2019.2 and updated to INVECTOR TEMPLATE 2.5 also the add-on version from the ORIGINAL CREATOR should be on pages 5 but will need alot of updating and code changes.... Updated link to unity 2019.2 INVECTOR TEMPLATE 2.5 www.dropbox.com/s/w22vuatzo35yoe6/SJLVehiclesAddOn%20for%20Invector2.5.rar?dl=0Best of luck, SJL
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 26, 2020 3:21:37 GMT
hello, i just try the addon and see some problems. so y try to solve some problems that i see are current in the previous thread. problems: when starts the game and move the player, all the vehicles move.
#1 Start a clean(new) project
#2 import INVECTOR TEMPLATE
#3 unity standard assets from the asset store
#4 once standard assets imported move the standard assets folder INTO THE INVECTOR TEMPLATE FOLDER
#5 import the vehicles add-on package into your project
* Import Invector Project Settings via the Invector welcome window.
* In V-CarControl.cs, replace line 654 with if (GetComponent<CarController>() != null) { GUISystem.CurrentCarSpeed = GetComponent<CarController>().CurrentSpeed; }
* In CarUserControl.cs i use this:
using System;
using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;
namespace UnityStandardAssets.Vehicles.Car
{
[RequireComponent(typeof (CarController))]
public class CarUserControl : MonoBehaviour
{
private CarController m_Car; // the car controller we want to use
private V_CarControl driving;
private void Awake()
{
// get the car controller
m_Car = GetComponent<CarController>();
driving = GetComponent<V_CarControl>();
}
private void FixedUpdate()
{
// pass the input to the car!
float h = CrossPlatformInputManager.GetAxis("Horizontal");
float v = CrossPlatformInputManager.GetAxis("Vertical");
#if !MOBILE_INPUT
if(driving.PlayerDriving == true)
{
m_Car.Move(h, v, v, 0f);
}
#endif
}
}
}
so, now the vehicles dont move with the player, but move when the player is on it
|
|
|
Post by freakystudios on Apr 27, 2020 3:29:36 GMT
I too need it for Invector shooter 2.5.0 latest Here is the link to what I redid of the add-on that is using unity 2019.2 and updated to INVECTOR TEMPLATE 2.5 also the add-on version from the ORIGINAL CREATOR should be on pages 5 but will need alot of updating and code changes.... Updated link to unity 2019.2 INVECTOR TEMPLATE 2.5 www.dropbox.com/s/w22vuatzo35yoe6/SJLVehiclesAddOn%20for%20Invector2.5.rar?dl=0Best of luck, SJL Thanks man!!
|
|
|
Post by y2splashy on Apr 27, 2020 19:40:06 GMT
Thanks man!! just one question, why are the controls for the cars different as i cant acess the WASD keys and i think that it only functions XBOX inputs, can someonem help?
|
|
|
Post by sjl on Apr 27, 2020 23:21:09 GMT
Thanks man!! just one question, why are the controls for the cars different as i cant acess the WASD keys and i think that it only functions XBOX inputs, can someonem help? You may have something in your project that over written the INVECTOR TEMPLATE input settings... Try reimporting the INVECTOR input settings That may fix it... Or try to find what may be causing the conflict... it should work with both keyboard and Xbox controller Other than that I'm not particularly sure as I have not ran into that issue myself Best of luck, SJL
|
|
|
Post by y2splashy on Apr 28, 2020 11:33:21 GMT
You may have something in your project that over written the INVECTOR TEMPLATE input settings... Try reimporting the INVECTOR input settings That may fix it... Or try to find what may be causing the conflict... it should work with both keyboard and Xbox controller Other than that I'm not particularly sure as I have not ran into that issue myself Best of luck, SJL thanks, that worked but there is still a few problems, 1. my character in the demo scene can enter the car and drive but once out of the vehicle, the camera zooms out far away 2. when you enter the car from the oposite side, it enters weirdly and it enters in mid air. if you could help me then that would be excellent
|
|
|
Post by sjl on Apr 28, 2020 17:18:26 GMT
You may have something in your project that over written the INVECTOR TEMPLATE input settings... Try reimporting the INVECTOR input settings That may fix it... Or try to find what may be causing the conflict... it should work with both keyboard and Xbox controller Other than that I'm not particularly sure as I have not ran into that issue myself Best of luck, SJL thanks, that worked but there is still a few problems, 1. my character in the demo scene can enter the car and drive but once out of the vehicle, the camera zooms out far away 2. when you enter the car from the oposite side, it enters weirdly and it enters in mid air. if you could help me then that would be excellent The entering from the passenger side of the car issue is possibly due only one collider is being raycasted and the animation is set to the driver door... I forget which collider it is I think it's the body collider if I'm thinking correctly.. You might be able to mirror the door and player animations and reliable them to what ever you wanted in the animator and look at the particular part in the driver door there was a specific door hing thing forgot the name now but copy and past that to the passenger door... But I have not tried that so it may or may not work... For the camera yes it's still a bit buggy to fix the zoom out just turn your camera into an object that has a collider such as the ground or the vehicle you exited and it will fix it self till it decides to do it again (-_-) also ladders (if you are going to use them) put a box Collider as trigger the height of your ladder then on ladder add vSimpleTrigger then in trigger enter in the little input box drag and drop your player function menu choose the camera controller and setbool active /enabled then uncheck the enable box Then on trigger exit repeat the process but check the enable box This will allow your character to climb ladders properly as for what ever reason I was never able to find the cause of the issue the camera controller script causes issues with ladders... So by enabling and disabling the camera controller script by trigger enter and exit it by corrects the issue... Hope that bit of information was of some help Best of luck, SJL
|
|
|
Post by touchstonebros on Apr 30, 2020 1:46:03 GMT
I too need it for Invector shooter 2.5.0 latest Here is the link to what I redid of the add-on that is using unity 2019.2 and updated to INVECTOR TEMPLATE 2.5 also the add-on version from the ORIGINAL CREATOR should be on pages 5 but will need alot of updating and code changes.... Updated link to unity 2019.2 INVECTOR TEMPLATE 2.5 www.dropbox.com/s/w22vuatzo35yoe6/SJLVehiclesAddOn%20for%20Invector2.5.rar?dl=0Best of luck, SJL Thanks for this! I spent a couple hours trying to get it to work with 2019. I know I have it close to working but the car wouldn't move forward. Was kinda stuck. I'll just try your build.
|
|