|
Post by husnain on Mar 6, 2021 18:40:04 GMT
The add-on from the ***ORIGINAL CREATOR*** should be on page 5 in a comment on this thread *** Will need alot of code changes to current version of invector*** The version **I released** should be on pages 25-30 somewhere between those pages ***Will need some code changes to current version of invector and (in unity) the add-on taken out of the SJL folder and unity standard assets to be placed into the INVECTOR FOLDER*** hope that is of some help Best of luck, SJL hei, i used invector v2.5.5, now when i imported the addon package, it shows some errors, i then put vehicle addon folder out and imported standard assets, all errors dissapeared , instead of this one, Assets\SJL VEHICLES AND STUFFS\VehiclesAddOn\Core Files\scripts\Car\V_CarControl.cs(654,122): error CS1061: 'CarUserControl' does not contain a definition for 'CurrentCarSpeed' and no accessible extension method 'CurrentCarSpeed' accepting a first argument of type 'CarUserControl' could be found (are you missing a using directive or an assembly reference?) can you please guide me, thanks
|
|
|
Post by sjl on Mar 8, 2021 2:19:18 GMT
hei, i used invector v2.5.5, now when i imported the addon package, it shows some errors, i then put vehicle addon folder out and imported standard assets, all errors dissapeared , instead of this one, Assets\SJL VEHICLES AND STUFFS\VehiclesAddOn\Core Files\scripts\Car\V_CarControl.cs(654,122): error CS1061: 'CarUserControl' does not contain a definition for 'CurrentCarSpeed' and no accessible extension method 'CurrentCarSpeed' accepting a first argument of type 'CarUserControl' could be found (are you missing a using directive or an assembly reference?) can you please guide me, thanks My computer is dead so I cannot update or make changes at this time HOWEVER... If your getting and error referring to the "SJL VEHICLES AND STUFF" that means you didn't get everything out of the folder... Also there is a recent update to this addon to work with INVECTOR v2.5.5 by HOBBYCODER which should be on the previous page of this thread... you should try use it instead... I have to rush off now Best of luck, SJL
|
|
|
Post by jbacal on Mar 15, 2021 22:25:06 GMT
@hobbycoder As the current guru of the vehicle addon, would you be able to explain how and where to set a new camera state when driving the vehicle? I've tried a few things but so far no success. Thanks, Jay
|
|
|
Post by hobbycoder on Mar 15, 2021 23:08:29 GMT
ok will make a video tonight or this weekend..currently at the office right now
|
|
|
Post by sjl on Mar 16, 2021 2:40:44 GMT
@hobbycoder As the current guru of the vehicle addon, would you be able to explain how and where to set a new camera state when driving the vehicle? I've tried a few things but so far no success. Thanks, Jay On MainCamera: Your camera state will be on your "main camera" And should be labeled as such "camera states" In that menu option you will select the vehicles-shootermelee camera state Than you should be set on that part... On your VEHICLES: There will be a camera spot on it as well you will select the size on the vehicle And should be set Sorry having to recall from memory... Hope that's of some help Best of luck, SJL
|
|
|
Post by jbacal on Mar 16, 2021 19:59:43 GMT
Thank you @ sjl and @hobbycoder. I think I've got it working now. The trick for me was creating new camera states in the vThirdPersonCamera object that are named the same thing as the states in the "Car Camera State System" section of the "V_car_user" component on the player. Best wishes,Jay
|
|
|
Post by jbacal on Mar 16, 2021 20:48:44 GMT
Here is another question for the experts. How can I get the camera to rotate with the vehicle (or get the vehicle to rotate towards the forward of the camera)? I can set the "Lock Camera" bool on the camera and this almost works but the effect is too stiff without any smoothing. Any hints will be appreciated. Thanks,Jay
Update: Okay, so I see that "Chase Camera On Off" simply toggles the "Lock Camera" bool so perhaps this is the best method.
|
|
|
Post by jbacal on Mar 17, 2021 0:21:19 GMT
Was the weapon system ever fully implemented? I see that there is a weapon HUD prefab and references to weapons in the car input component? Thanks.
Update: I see now that the CarAI has the ability to fire bullets when the player is in range.
|
|
|
Post by sjl on Mar 17, 2021 11:37:00 GMT
Was the weapon system ever fully implemented? I see that there is a weapon HUD prefab and references to weapons in the car input component? Thanks. Update: I see now that the CarAI has the ability to fire bullets when the player is in range. Unfortunately the **ORIGINAL CREATOR** of the vehicle addon did not put in the weapons thing before he had disappeared for whatever his reasons... Also about the camera rotate while in VEHICLES you can look further back in the forum of this addon to find the code changes for the camera to make the camera rotate while in the VEHICLES or you can download the version of the addon that I had released (now outdated) and uses the camera script from it where I had already put the code changes in for that... I'm my opinion if you down loaded the version of this addon from ** HOBBYCODER ** that is updated to current version of the INVECTOR template that was updated from the ** original creator ** and input some code changes from the version I released (now outdated) for your camera you should be good on what your asking... Unfortunately I have not gotten a new computer yet to get back to work on things But for ease of use I suggest using ** HOBBYCODER ** release and look back in the comments for particular code changes that may not been changed or need change... Hopefully that is of some help Best of luck, SJL
|
|
|
Post by jbacal on Mar 17, 2021 19:19:04 GMT
@ sjl Thanks for trying to help. But none of the suggestions achieve what I'm looking for. I want the vehicle to rotate towards the forward direction of the camera when I rotate the camera left or right with the right analog joystick. This is the default behavior of the player before he gets into the car. Thanks again,Jay
|
|
|
Post by sjl on Mar 17, 2021 21:07:47 GMT
@ sjl Thanks for trying to help. But none of the suggestions achieve what I'm looking for. I want the vehicle to rotate towards the forward direction of the camera when I rotate the camera left or right with the left analog joystick. This is the default behavior of the player before he gets into the car. Thanks again,Jay Ahhh I gotcha now... One suggestion for that is to look at how that is done by the character controller and try to implement that to the vehicle controller But I will say it maybe rather difficult to do being the vehicle controller is based off the unity standard asset thingy... My suggestion would be create a new project with INVECTOR and stuff needed for the vehicle addon and start a trial and error project until you get the code right then put that code change into your main project... Best of luck, SJL
|
|
|
Post by husnain on Mar 18, 2021 18:45:46 GMT
i found its solution but the problem is when ever player interact with vehicle it get in the car but not drive , also enter exit animation working, but driving is not working , i am trying with demo scene in the package too, but same issue hei, i used invector v2.5.5, now when i imported the addon package, it shows some errors, i then put vehicle addon folder out and imported standard assets, all errors dissapeared , instead of this one, Assets\SJL VEHICLES AND STUFFS\VehiclesAddOn\Core Files\scripts\Car\V_CarControl.cs(654,122): error CS1061: 'CarUserControl' does not contain a definition for 'CurrentCarSpeed' and no accessible extension method 'CurrentCarSpeed' accepting a first argument of type 'CarUserControl' could be found (are you missing a using directive or an assembly reference?) can you please guide me, thanks My computer is dead so I cannot update or make changes at this time HOWEVER... If your getting and error referring to the "SJL VEHICLES AND STUFF" that means you didn't get everything out of the folder... Also there is a recent update to this addon to work with INVECTOR v2.5.5 by HOBBYCODER which should be on the previous page of this thread... you should try use it instead... I have to rush off now Best of luck, SJL
|
|
|
Post by sjl on Mar 18, 2021 21:04:54 GMT
My computer is dead so I cannot update or make changes at this time HOWEVER... If your getting and error referring to the "SJL VEHICLES AND STUFF" that means you didn't get everything out of the folder... Also there is a recent update to this addon to work with INVECTOR v2.5.5 by HOBBYCODER which should be on the previous page of this thread... you should try use it instead... I have to rush off now Best of luck, SJL Have you tried to use the version released by HOBBYCODER??? sorry I haven't gotten a new computer yet to do anything (working too much to do anything) if I'm not mistaken I believe HOBBYCODER release corrects this issue... However there maybe some still useful stuff in the version I had released that still could be used (not sure since my computer is dead (no longer works)) But I do suggest to use HOBBYCODER version as to my knowledge is most upto date with current INVECTOR template.. best of luck, SJL
|
|
|
Post by hasnain on May 22, 2021 7:06:43 GMT
hey jgiroux this asset is deprecated for unity 2019(LTS) so did you provide the new update???
|
|
edem
New vMember
Posts: 9
|
Post by edem on May 22, 2021 22:34:04 GMT
well man...I can't see the add on. is it not available again?
|
|