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 / Detecting when Player picks up an entity?

Author
Message
DcZee
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 30th Apr 2007 18:35
Can an entity detect that it has been picked up by the player?

I tried "plrass=" and "associated=" but they do not seem to indicated the pick up.

Who spilled the beer into Rambo's dish?
Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 30th Apr 2007 19:33 Edited at: 30th Apr 2007 19:33
What about "plrhaskey"

This can be an item or key. Just referenced by the game-name.

edit: Look at "doorkey.fpi" in your scripts folder for an example.

http://www.gamestack.org
http://onlinenotes.gamestack.org
http://onlinebookmarks.gamestack.org
DcZee
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 1st May 2007 16:13
Hi Mickm

There seems to be two ways to pick something up. One is when you pick up and item and it now becomes part of your inventory, and the other is when you pick up an item to carry it but it doesn't become a part of your inventory.

Im trying to detect the latter pick up type. Plrhaskey seems to repond to the item if it becomes part of your inventory.

A work around might be to detect the range of the player from the object and only allow the USE interaction for a timed segment. After that time out, the player must back away from the object (put it down and/or back away) to reinitialize the USE function. I can do that, but just thought a "plrholdentity" type command might exist.

Your help is appreciated, thanks )

Who spilled the beer into Rambo's dish?

Login to post a reply

Server time is: 2024-11-23 16:33:33
Your offset time is: 2024-11-23 16:33:33