Scripts / Dvaders Pickup and carry

Author
Message
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 2nd Apr 2015 10:59 Edited at: 2nd Apr 2015 10:59
Not quite sure where to place this post, but I guess here

I'm just wondering if Dvaders script which is excellent for pickup carry and drop etc, can be edited maybe to add collision detection with other entities?

I'm not sure if this is even possible.

Thanks
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 3rd Apr 2015 17:10
I am going to move this to the script board, as I feel it would get a better response from there.

Thank you
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Apr 2015 19:08
seeing as it's a paid script we can't really release it here but did you try adding CollisionOn(e) inside the main part?
i dont have the script so not sure how it works but i assume it works using setposition like the others and thus likely wont work?

i decided to make my own version but it's not quite as smooth - especially at lower frame rates which is why the video looks so bad - but it does have collision




life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 3rd Apr 2015 19:16 Edited at: 3rd Apr 2015 20:07
great thanks smallg, i'll try it out, thats works really well with the collision, shame about the objects shaking, why is that, just out of interest ?
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Apr 2015 21:38
Quote: "shame about the objects shaking, why is that, just out of interest ?"

a couple reasons, to move objects with collision you must first turn collision off but to use collision it of course needs to be on.... this quick switching back and forth causes objects to continuously rise... which must be accounted for.
the object is constantly moving to keep it in the correct position and while a slower movement causes less shake it also means the object gets left behind if you walk/run but mostly i think it's just the way i set up the check for maintaining the position, if i allow a greater gap it should be smoother but i can't test that right now.

life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11

Login to post a reply

Server time is: 2024-05-23 23:59:30
Your offset time is: 2024-05-23 23:59:30