Scripts / Yet Another Visible Carry & Drop Script

Author
Message
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 9th Oct 2014 18:58
This one mirrors player angle for the item and hides if view angle drops too far.

Note entity must be dynamic (of course) and Physics set to 'No'.

Hope this is useful for someone . Thanks to DVader for the inspiration!



Attachments

Login to view attachments
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Oct 2014 19:01 Edited at: 10th Oct 2014 19:02
very nice, works really well, not sure i like the automatic hiding thing (kinda looks weird on smaller & closer objects but i can adjust this easily enough so no worries) but the custom distance is a nice touch

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Tingalls
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 5th Nov 2013
Location: Great Northwest, USA
Posted: 11th Oct 2014 12:17
Very nice - good job, I did notice that if you put two items close together that they both get picked up and you can't separate them, I'm also wondering how this could be made to stack items when you drop them. I tried to exclude the collision commands but that didn't work.

Experiencing a cool Game --> Tingalls



Win 7 Home Premium, 64bit(srvPack 1),AMD FX 4100 Quad-core 3.8Ghz @ 8Gb Ram - NVIDIA GeForce GT 610 @ 1GB Ram
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 11th Oct 2014 16:25
Thanks for the feedback.

This next version is better - allows more selective picking up, stacking and interacting with the items once placed.

I tested with the wooden crate.

Note - for this version PHYSICS ON must be YES!

Cheers.

Attachments

Login to view attachments
almightyhood
10
Years of Service
User Offline
Joined: 9th Oct 2013
Location:
Posted: 11th Oct 2014 17:04
sounds cool, will check it out thanks for the scripts so far

evga GeForce gtx 750 ti boost2.0 2gb gddr5. win 8.1 quad core 4gb ram.
PM
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 30th Oct 2014 03:33
Here's a short video showing the updated script in action. Also shows some of the 'western' classic assets in use within reloaded, and an animated sprite from the classic pack. A hat tip to Rafhalzer's Animer too.



Is it November yet? I'm feeling the need for speed and more lua commands

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 30th Oct 2014 10:00
cool video

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
vrg
9
Years of Service
User Offline
Joined: 27th Aug 2014
Location: Netherlands
Posted: 2nd Nov 2014 23:16
The carry and drop script I am using is behaving strange dropping the item is moving it to the start position I picked it up.
This is not what I meaned ,the item must stay on the position I dropped it.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Nov 2014 18:16
Quote: "The carry and drop script I am using is behaving strange dropping the item is moving it to the start position I picked it up.
This is not what I meaned ,the item must stay on the position I dropped it. "


you arent using the scripts above then, please provide your code or we can't help

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
vrg
9
Years of Service
User Offline
Joined: 27th Aug 2014
Location: Netherlands
Posted: 5th Nov 2014 20:25
I think the problem cause is not the script but the object I am using. I was using a character entity without animation. A normal object
entity was reacting normal.
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 6th Nov 2014 16:58
Sorry vrg I can't recreate that problem.

If I try animated or non animated characters it still works OK for me.

Login to post a reply

Server time is: 2024-05-02 06:45:08
Your offset time is: 2024-05-02 06:45:08