Modme Forums

Change prefab mid game?

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: Frost Iceforge

So, I wanted to do a few things. One would be add a Time Attack, where finishing a wave in a certain amount of time would change a wall weapon prefab into different weapons like on Gorod and Revelations with the melee weapons.

The other was to change HarryBO21's Hell's Retriever into a Hell's Redeemer after doing an easter egg (which I already scripted, just need to script this)

Both of these could be done if I could change the Hell's Retriever prefab and the wallbuy prefab with some kind of script.

Any help is really appreciated!


ModmeBot:

Reply By: DTZxPorter

You may be able to get away with it converting each brush / model to their script_ other IE: script_model, it's the only way to interact with them. The model can change using the .model property, but you might have an easier time creating all prefabs in radiant, them moving them with script to a visible spot later on.