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 / Tutorial: Make an entity drop an item.

Author
Message
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 3rd Jan 2008 01:56
Okay, I've heard from many people that this is not possible. This is incorrect, and it's been DONE before. I even did this in my un-released version of "Spy Trainer", so I kinda forgot to tell this to everyone.

Well, here it is. A way to let your boxes, crates, bad guys, whatever, DROP items!

There is but a single rule to follow in order to make this work in a believable fashion:

Rule: The entity that is going to drop the item CANNOT move.

This rule can be a bit daunting for use with enemies, but I think if you made the enemy powerful enough and set it up in a nice arena type fashion, then it can be pretty believable. (I.E. An enemy with an overly powerful automatic weapon, that doesn't stop firing.)

Okay, down to business.

Step 1) Make your entity that is going to be dropping an item. I'll call this entity "Item Dropper".

Step 2) Make you entity that is going to be dropped. Place it at the SAME location as the Item Dropper. I am going to call this entity "Dropped Item".

Step 3) Set up the Dropped Item's properties so that it can be spawned by activation.

Step 4) Alter the Item Dropper's "Destroy" script to activate the entity in it's "If Used" property. Now, go put in the Dropped Item's NAME into the Item Dropper's "If Used" property.

Step 5) Test it!


That is as simple as it comes.

I hope that this will help people to make those long sought after "Boxes that drop ammo".


Good luck out there, everyone.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 3rd Jan 2008 07:16
...hey, this is really useful!


Widow 13 - Coming Spring 2008
FPSC World
17
Years of Service
User Offline
Joined: 4th Nov 2007
Location: Never
Posted: 3rd Jan 2008 07:58
thanks.

FPS Creator is My World
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 4th Jan 2008 17:10
I came up with this theory to spawn an ammo crate made by the inovator, thanks for the tut though Plystire, as i had yet to test it.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Jan 2008 02:20
Glad I could help, guys!

I didn't go into a whole lot of detail for the properties since I was in a rush at the time.

But it doesn't look like anyone has any questions about that, so I guess it all panned out.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Commander Jake 14
16
Years of Service
User Offline
Joined: 2nd Jan 2008
Location: 9th planet from the sun
Posted: 6th Jan 2008 05:03
I tried it but the ammo seems to be just under the create or is that the trick.
Andrew121
16
Years of Service
User Offline
Joined: 24th Apr 2008
Location:
Posted: 25th Apr 2008 02:33
how do i add an ifused to an enemy?? lol
Andrew121
16
Years of Service
User Offline
Joined: 24th Apr 2008
Location:
Posted: 27th Apr 2008 19:52
Umm any help??
JunckMAn
16
Years of Service
User Offline
Joined: 23rd Apr 2008
Location: JunckLAnd
Posted: 24th May 2008 20:14
I've did it easier way. but it not always is suitable. take big entity and put it on the dropped item. so u have to just demolish crate, tank, car, barrel and so on to get your item

And u didnt believe i was russian
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 24th May 2008 21:44
Thanks for the tutorial Plystire.

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein

Login to post a reply

Server time is: 2024-11-24 08:27:36
Your offset time is: 2024-11-24 08:27:36