Jump to content

Spawning Objects


ecksile

Recommended Posts

Curiously wondering if you can say create an object that leads somewhere when activated (room or whatever, but its basically a door), but that can spawn randomly. It isn't always in the same spot every time. So lets say you setup a room, But you want to keep the entrance to the room dynamic, Kind of like how the random encounters work. You would specify several areas throughout the world, Make your "Door Object" and when the player enters one of the specified cells the object will have a possibility of "spawning" or not. If it spawns then the player could activate it and it would act like a door and take player to wherever. Now that I think about it I'm pretty sure it is possible.

 

Also was curious if you could set up dynamic weapon spawns. For example lets say you have a "cell", The player enters this "cell" and there's a "table". Now on this table is a "9mm Handgun" and some "9mm Ammo". Player dies and didn't save prior to finding theses items or whatever...new game...whatever. Either way player enters this "cell" for the first time (according to the game) and expects to find "9mm Handgun" and "9mm Ammo", but instead this time its a "Chinese assault rifle and some grenades" Or a "10mm Handgun" and "10mm Ammo" Can I make an object that would spawn whatever weapon and ammo I want when the cell loads for the first time. I would use a level list and that other list I cant remember right now cuz its been so long.

 

I hope that all made sense, Thanks for reading.

Link to comment
Share on other sites

I read your first question. You could have several doors around the world disabled initially. And have a Begin GameMode script or a Trigger script (with related marker) that would check to see if the door would be enabled and thus accessible. Would need to get a random number and if that random number works for your IF query then it is shown.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...