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 / Help script pickup/drop entity ( pickupcandrop.fpi )

User Offline
Joined: 4th Jan 2017
Posted: 19th Mar 2017 05:07
Hi everyone i need some help

There is a ready script to pickup/put entity here it is :

;Artificial Intelligence Script


desc = Pickup Item (can drop - press H) [MUST USE PHYSICS ALWAYS ON]



;playerdrop when press H key causes an automatic increment of the state value


;End of Script

When use this script to the entity is taken from the floor and when pressing the H button, nothing happens.
Who knows how to make the entity was taken from the floor and pressing the button H is drop entity on the floor.

Here is the script file
Years of Service
Recently Online
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 19th Mar 2017 21:55
Hi nnn, and welcome
First, what kind of entity is the player picking up? An item or a weapon?
But try this and see if it works, I change it a bit. Also, make sure in the entities
property setting, "Always Active" is set to YES !!! or it wont work
+ Code Snippet
My games never have bugs. They just develop random features..
Lots and lots of random features...
User Offline
Joined: 4th Jan 2017
Posted: 21st Mar 2017 20:25
Thanks and how to make entity drop and explod after 10 second ?
Years of Service
User Offline
Joined: 21st Jul 2012
Playing: Working on "This Is Home" an FPSc project
Posted: 22nd Mar 2017 16:02
I tweaked ncmako's script a bit. Keep his settings as said but also change explodable to yes.
+ Code Snippet
As always, Game on! -2S!K Productions

Login to post a reply

Server time is: 2017-03-24 00:00:10
Your offset time is: 2017-03-24 00:00:10