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 / Can't pick up a key?

Author
Message
Blahguy
13
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 29th Jan 2011 00:27
This may seem like a dumb question, but I can assure you if it was I would not ask it. They key I am speaking of is set to spawn when a certain entity dies by the entities destroy script activating it. Here's the code if that didn't make sense:
This is the code for the entities destroy script.

Here is the code for the key's Appear script:

The keys Main script is set to the key default, pickupkey.fpi, however I cannot pick it up!!

Any help is greatly appreciated.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 30th Jan 2011 12:41
Have you changed any of the key entities properties? I can only think that something has been changed to prevent you from taking the key.

Try, seeing if you can pick the key up with the original APPEAR script and the key being available from the start.

Just a note "spawnon" is not needed - this only sets the "Spawn at Start" parameter to "Yes". It doesn't initiate the spawning of the key.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Blahguy
13
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 30th Jan 2011 14:19
Well now it sort of works. The only thing I changed was Spawn At Start to Yes, so now it spawns, but I can't pick it up until i kill the entity. That's good enough i guess.
Thraxas
Retired Moderator
18
Years of Service
User Offline
Joined: 8th Feb 2006
Location: The Avenging Axe, Turai
Posted: 31st Jan 2011 06:25 Edited at: 31st Jan 2011 06:26
I opened your level again (as I'm assuming it's the same from the bug reports section).

Just change the key's appear script to appear1.fpi and have spawn at start set to no. Now the key won't spawn on the table until the ai character dies.

It doesn't need the appear script you used, just the regular default one. I tested this from within your level and it worked fine.

Edit:
This worked with both conker and colonel x

A man will one day wear a tophat in glasgow on a sunny day juggeling grapes while humming the jurrasic park theme tune.
Blahguy
13
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 1st Feb 2011 04:16
Ty so much for all your help Thraxas! I have so many questions about this stuff lol do u think u can help me out http://forum.thegamecreators.com/?m=forum_view&t=180957&b=23

Login to post a reply

Server time is: 2024-11-24 12:26:30
Your offset time is: 2024-11-24 12:26:30