Find a randomly spawn item

  1. Randomly spawning items

You will need:

a. func_button (name: button)

b. prop_dynamic (name: keys)

c. logic_case (name: case)

d. info_beacon (you CAN use a func_brush w/redbox texture, but its more complicated) (name: hint)

e. point_teleport (one for each possible item spawn point) (name: T1, T2, T3, etc.) Set the "entity to teleport" in the "class info" tab to "keys" for each of these.

Place your keys somewhere within the map that is unreachable by players. Wrap the button brush around them, shaped to roughly the same size, but keep it rectangular/square in shape. Place the logic_case entity with these two entities just for easy access. Place the info beacon on top of the button (if you want people to find this item VERY easily). Place each of your teleport entities in the map where you would like the item to possibly spawn. Let's say your previous objective, a hold and hack, is what enables this objective. That logic timer would need an output which reads:

ontimer; case; pickrandom

Now fill out the outputs accordingly:

--logic_case:

onCase01; T1; teleport

onCase02; T2; teleport

onCase03; T3; teleport

etc.

--func_button:

onpressed; button; kill

onpressed; nextobjectivebutton; unlock

onpressed; nextobjectivehint; enable

onpressed; keys; kill

onpressed; hint; TurnOff

And that's really all there is to it. The prop_dynamic, the beacons/hints, and the teleports are all passive elements to these objectives. They are controlled by the aggressive entity's: func_button and logic_case. They function in response to an output, and don't need to fire any direct outputs, unless of course you want them to for your own purposes. Again, these are the nuts and bolts of basic objective system elements, and with creativity and thought can be integrated into more dynamic and complicated systems.

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Tutorial.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Tutorial a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Tutorial.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • Bellota
    Availability
    Offline
    Points Level
    Beggar
    405 points
    Account Age Level
    Veteran
    5 years old
    Clearance Level
    Member
    5 years ago:
    Posted by zeiser12 Make a tutorial about like how to make someone needing to pick up a valve attach it, turn it and a door opens and locks it self when it is completely open, i think i can figure that out bu-t just something to make your next tutorial about :) but great tut anywayz ill approve

    Thanks you! ill make that tutorial ;)

    User Title
    Hammerheart
  • zeiser12
    Availability
    Offline
    Account Age Level
    Veteran
    6 years old
    Clearance Level
    Member
    5 years ago:

    Make a tutorial about like how to make someone needing to pick up a valve attach it, turn it and a door opens and locks it self when it is completely open, i think i can figure that out bu-t just something to make your next tutorial about :) but great tut anywayz ill approve

    Mess with the best, die like t

Credits

Key Authors
LordJeckyll
Writer

Submitter

Bellota
Availability
Offline
Points Level
Beggar
405 points
Account Age Level
Veteran
5 years old
Clearance Level
Member

Bellota
(Creator/Co-creator)

Rating

7.7/10
Based off 1 rating(s)

Additional Info

Genre
Mapping
Difficulty Level
Intermediate

Stats

Post Count
2
ViewCount
1,445
Date Added
5 years ago
Date Modified
2 years ago

Share

Code to use:

More embeddable images

Bookmark and Share