|
Post by nickyg on Jul 2, 2020 17:08:29 GMT
I'm loving the crafting addon!
I'm wondering where can I change the location where items get dropped after being crafted?
I need to change the crafting location because items are dropped at my players feet and some times the item falls through my games world.
Thanks!
|
|
|
Post by Invector on Jul 2, 2020 20:01:16 GMT
Yes man. You need to override or change the ItemManager drop method
|
|
|
Post by nickyg on Jul 2, 2020 21:36:58 GMT
Thanks for the speedy reply. Just got it implemented and its working perfect. Default: With Offset: Hope this helps someone in the future.
|
|
|
Post by kingceryn on Jul 29, 2020 11:14:47 GMT
For anyone else looking to do this, just add around line 37: public Vector3 DropOffset = new Vector3( 0, 1, -1 );
and at line 1208 make it say: var dropObject = Instantiate(item.dropObject, transform.position + DropOffset , transform.rotation) as GameObject;
0,1,-1 are just the values that worked for me, that'll give you the same window OP has in his screenshots!
|
|