Scripts / Question for Smalg

Author
Message
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 10th Dec 2017 17:59 Edited at: 10th Dec 2017 18:10
Smallg a long time a go you corrected a carry_object script of wermer .
https://forum.game-guru.com/thread/214085#msg2536346

here is his script.


Here is the script you corrected.


Here is my Question. you said you have corrected his script .
Quote: "
it's just because of the way you are using it there, what's actually happening is while you are holding 'e' to carry the object the object is in actual fact getting dropped and picked up in a very quick time and thus you don't notice... it does work but obviously not quite what you intended
i did notice that my script wouldn't work for hitting the carried object on obstacles though and thus not dropping it if it became out of range (while your version would inadvertently do so) so i have added an extra distance check.
"



I wanted to use your script, because it sounded if its going to work better.
but when i run your script i get an error message , see picture attach.
When i use wermer's script its working with out an error.
but i can see what you mean by the object is being dropped all the time.
So i was wandering if you can have a look at the script again that you made and see why its giving me this error


Ps ... apologies for spelling Smallg wrong in the title
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

Attachments

Login to view attachments
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 10th Dec 2017 18:34
Change init_nearest_dist in line 42 to int_nearest_dist.

Been there, done that, got all the T-Shirts!
PM
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 10th Dec 2017 19:29
@AmenMoses. You sir, are a star.
Its the small things in live that matters. lol
thank you.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 10th Dec 2017 19:31
All i need now is to get my rocket up in the sky.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

Login to post a reply

Server time is: 2024-12-23 00:48:24
Your offset time is: 2024-12-23 00:48:24