Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Stopping dynamic entities from being picked up?

Author
Message
Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 12th Jun 2009 14:38
I've come across a problem when it comes to certain items in my game, like PDAs, keys and weapons. They can all be picked up if I press T or the right mouse button. How can I keep them dynamic, but having it so they cant be picked up?
Kravenwolf
15
Years of Service
User Offline
Joined: 14th Apr 2009
Location: Silent Hill
Posted: 12th Jun 2009 14:39 Edited at: 12th Jun 2009 14:41
Set their 'is immobile' property to 'yes', or, edit their script...


-Kravenwolf

Success is not final--failure is not eternal.
Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 12th Jun 2009 14:41
Thats the thing.. I have, yet I can still pick them up. o_0
Kravenwolf
15
Years of Service
User Offline
Joined: 14th Apr 2009
Location: Silent Hill
Posted: 12th Jun 2009 14:42 Edited at: 12th Jun 2009 14:46


Try taking out the 'playertake' command, or change the plydistwithin= to 0 in the items main script.


-Kravenwolf

Success is not final--failure is not eternal.
Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 12th Jun 2009 15:23
I mean picked up as in physics wise, where you can throw the objects about and that etc.

Even if I set it to isimobile, it is still able to be picked up.
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 12th Jun 2009 18:14 Edited at: 12th Jun 2009 18:16
add this to the main script

allowplrpickup=0

requires ply's mod, if u don't use it then simply change entity to static or keep it dynamaic but increase its weight dramatically


~Level my Dragon~[/url]
Best Wishes..
Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 12th Jun 2009 19:06
Thanks buddy, worked like a charm.

Login to post a reply

Server time is: 2024-11-25 02:47:12
Your offset time is: 2024-11-25 02:47:12