|
Post by Chronicman on Feb 5, 2021 0:05:29 GMT
Hello all, I present to you Vendor Addon for the Invector 3rd person controller. I decided to make this free even though I put lots of hours into creating it, I returned because I love doing this as a hobby and making it a paid addon would take all the fun out of it. Requirements: Melee or shooter controller. Features: -Currency -Vendor Creation Menu -Vendor Item Database -Buy Sell items -Vendor Display -Vendor Text Chat -Keyboard, Mouse & Controller supported. (controller not tested as I don’t have one) Demo: www.dropbox.com/sh/hz6scqn8mcbr2em/AACEZJ3A_0SmAYE-YXRpp6zYa?dl=0Download addon here: www.dropbox.com/s/gcpr68luv2bgx3d/VendorAddon1.0.unitypackage?dl=0Tutorials: Enjoy the package everyone. PS: post you work of your custom vendor below. I would love to see.
|
|
|
Post by manwitch on Feb 5, 2021 2:11:30 GMT
This is so awesome of you, I'm not quite at the point in my project to put this to good use, but I will be checking this out very soon.
I am using some of your other stuff already and I'm looking forward to this one.
|
|
|
Post by Chronicman on Feb 5, 2021 13:38:11 GMT
That’s awesome manwitch, what others are you using? I’d be really happy to see some of you work when you are ready. I should have another Addon ready tonight. A easy loot system, with drop chances and amounts.
|
|
|
Post by manwitch on Feb 5, 2021 14:05:04 GMT
I'm using the health monitor and the spawner. I'll be sure to post some stuff when I have something worth posting lol. Right now I'm battling through updates.... for me it's a slow process. I'm a solo developer, that started from interest in games, and evolved into a sort of passion/hobby. My wife would say I spend way too much time at it now lol.
I have a pretty solid idea for what I'm trying to accomplish but I figure it will be a very long time until I get something worth sharing (as far as a finished game) with the public. But I will share some of my progress when I get there for sure.
|
|
|
Post by manwitch on Feb 5, 2021 14:11:22 GMT
|
|
|
Post by Chronicman on Feb 5, 2021 23:04:05 GMT
looks good, I like the model lol.
|
|
|
Post by denvzla on Feb 13, 2021 21:32:42 GMT
hi, thanks for the plugin , but i couldn't use it , i am using invector shooter 2.5.6 please check it, i need it
|
|
|
Post by dreadheadsenpai on Feb 15, 2021 20:43:02 GMT
Awesome addon, but im getting an error where the player is still active and the cursor is still hidden. (using melee 2.5.6)
|
|
|
Post by Chronicman on Feb 17, 2021 14:27:35 GMT
denvzla I just imported the vendor system into a fresh project last night and it worked fine for me. Could you help me reproduce this problem? dreadheadsenpai I think I forgot to add the check for using melee or shooter. I will try and look into this on the weekend.
|
|
|
Post by denvzla on Feb 17, 2021 17:32:43 GMT
denvzla I just imported the vendor system into a fresh project last night and it worked fine for me. Could you help me reproduce this problem? dreadheadsenpai I think I forgot to add the check for using melee or shooter. I will try and look into this on the weekend. hi, I found a solution to my problem, apparently it is with the label "Player" vendor.user is assigned when a player object with the label "player" collides with triggers, apparently my object chaceracter the children also have that label and it was causing error because it couldn't find the currencymanager, fix it by manually assigning the character controller Maybe it is not the correct way, but it was what I found, what happens is that in my Player object there are objects with multiple "PLAYER" tags, maybe it is because I am using add-ons: invector shooter 2.5.6 Swimming Addon FreeClimb Addon Ragdoll And Horse Animset Pro VendorTrigger.cs : public class VendorTrigger : MonoBehaviour
{
private Vendor vendor;
public GameObject player;
public UnityEvent OnPlayerEnter;
public UnityEvent OnPlayerExit;
bool interacted = false;
private void Start()
{
vendor = GetComponentInParent<Vendor>();
vendor.user = player;
}
public void OnTriggerEnter(Collider other)
{
if (!interacted && other.gameObject.tag == "Player")
{
OnPlayerEnter.Invoke();
interacted = true;
}
}
private void LateUpdate()
{
if (!vendor.user)
return;
if (vendor.openVendor.GetButtonDown() && !vendor.user.GetComponent<vItemManager>().inventory.isOpen)
{
if (!vendor.isOpen)
vendor.OpenVendor();
}
if(vendor.cancel.GetButtonDown() && !vendor.user.GetComponent<vItemManager>().inventory.isOpen)
if (vendor.isOpen)
vendor.CloseVendor();
}
public void OnTriggerExit(Collider other)
{
if (interacted && other.gameObject.tag == "Player")
{
OnPlayerExit.Invoke();
interacted = false;
}
}
}
|
|
|
Post by Chronicman on Feb 17, 2021 19:51:48 GMT
Are you using the multiplayer addon ? The player needs to be the root object it can’t be the child of another object. Also this addon is not networked.
|
|
|
Post by max076 on Feb 23, 2021 8:32:04 GMT
Good work! Thank you man, work just fine on 2.5.4 version!
|
|
|
Post by jbacal on Mar 9, 2021 3:07:42 GMT
Excellent addon. Many thanks! I want to display the current currency amount on the HUD. What is the best approach to this? Which function do I call to get and update the current currency amount? Thanks, Jay
Update: Worked something out. Modified Currency Display script to call the Init method on start with the Currency Manager.
|
|
domuk
New vMember
Posts: 7
|
Post by domuk on May 4, 2021 11:41:58 GMT
anyhone done a save script for the currency yet?
|
|
|
Post by anonvd on May 17, 2021 17:43:09 GMT
fdf
|
|