Product Chat / How do I use the Use Key and If Used properties?

Author
Message
World Class Multimedia
15
Years of Service
User Offline
Joined: 15th Aug 2008
Playing: Game Development
Posted: 10th Jun 2014 06:43
What do I put in the Use Key and If Used AI Automated section when I use a dynamic entity, such as a gate. I have a collectable key and
I assume the gate will open when the key is used. How do I do this?

Mike

YOU DREAM IT - WE CREATE IT!

www.world-class-multimedia.com

For world-class virtual instruments - www.supersynths.com
shakyshawn8151
10
Years of Service
User Offline
Joined: 9th Nov 2013
Location: United States
Posted: 10th Jun 2014 07:27
On the key you placed that you want to use for the gate change the "name" of Key at the top in its properties, then click the gate and go to its properties and type the name of the key inside "Use Key" section. It took me awhile to figure this out. Now only certain keys will work for certain doors Btw I haven't tested this on a gate only doors, but im pretty sure its the same factor.

------Dead of Night----- Open World Zombie Horror!!

Youtube/ShakyShawn8151 > 10k Subs Celebration
BarZaTTacKS
10
Years of Service
User Offline
Joined: 3rd Feb 2014
Location:
Posted: 10th Jun 2014 14:27
One gate is animated another is not so if it doesn't work you will want to check that.
PM
World Class Multimedia
15
Years of Service
User Offline
Joined: 15th Aug 2008
Playing: Game Development
Posted: 10th Jun 2014 15:00
When you walk up to the gate, it says "Need key to open" so I am going to guess it is animated. The other gate I am using is certainly static and does not ask for a key AND that is the way I need it.

How about the other variable, If Used? What do I put there?

Thanks.

Mike

YOU DREAM IT - WE CREATE IT!

www.world-class-multimedia.com

For world-class virtual instruments - www.supersynths.com
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Jun 2014 20:34
99% sure the 'if used' part doesnt do anything yet

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 10th Jun 2014 23:14
Same here. I looked at it just the other night and can see no obvious use. It's probably left over from from Classic (it was there, I never used it, never got into FPI, I found it awful and frustrating. Lua is WAY better). Probably used to run another script when the object is used originally. I'm probably wrong, as I said I never used it in the original.



SPECS: Q6600 CPU. Nvidia 260GTX. 8 Gig Memory. Win 7.
unfamillia
Forum Support
13
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 11th Jun 2014 13:32
I miss that little condition! ifused was used to spwan items into the world or trigger other things to happen.

It was so simple to spawn entities. All you did was create a trigger zone, apply the plrinzone.fpi and then in the ifused field, simply type the name of the entity that is 'hiding'. As soon as you enter the zone, the entity will spawn! Magic!

I personally found fpi 110% easier than lua! lua is more like actual scripting! Scary stuff!

LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 11th Jun 2014 14:14
Yes 'IF USED' is a throwback, but it's probably worth keeping in and making functional as it's a very quick way to trigger an entity to spawn without writing a specific script for the event Added to my list.

PC SPECS: Windows 7 Ultimate 64-bit, Intel Core i7 920 (PASSMARK:5008), NVIDIA Geforce 9600 GT GPU (PASSMARK:752) , 6GB RAM

unfamillia
Forum Support
13
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 11th Jun 2014 14:17 Edited at: 11th Jun 2014 14:18
Quote: "Added to my list."




You...........you mean....my precious is coming back to me?



Thank you! Thank you so much.



Next time you are around the world of Macclesfield, I shall buy you a pint sir!



Cheers



Jay.

LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 11th Jun 2014 14:46 Edited at: 11th Jun 2014 14:46
Mine is a Guinness draft, and thanks in advance!

PC SPECS: Windows 7 Ultimate 64-bit, Intel Core i7 920 (PASSMARK:5008), NVIDIA Geforce 9600 GT GPU (PASSMARK:752) , 6GB RAM

unfamillia
Forum Support
13
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 11th Jun 2014 16:40
Good choice sir!

Next time you are in Macclesfield, fire me an email and I will be at the pub with your Guinness.

Cheers

Jay.

rolfy
17
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 11th Jun 2014 22:38 Edited at: 11th Jun 2014 22:39
Yep, the 'ifused' field was a little miracle, I think many failed to realise how elegant and simple fpi actually was, of course not as versatile or advanced as other scripting languages but a great way for beginners to learn and that's what FPSC was about.



Going a little further you could even trigger with different ID numbers 1-whatever and activetifused=x, activated=x followed by any action you wanted, even randomising actions with it or triggering secondary scripts to run.



Heady days

A funny thing happened on the way to the forum...

Login to post a reply

Server time is: 2024-04-27 22:42:00
Your offset time is: 2024-04-27 22:42:00