Jump to content

Sign in to follow this  
Pillowtap

Grouping objects and probability chance

Recommended Posts

Hello. I have created a few defensive bases on my map, and I would like to somehow make these bases (a bunch of sandbags, static guns, etc) be in a group and have a probability of spawning all together or not at all.

Meaning, theirs a chance the entire base will spawn or it wont. I can make individual objects in the base randomly appear or not appear using the individual probability sliders, but it looks awful since the base is missing random pieces. Any ideas...? Does what I'm asking even make sense to anyone?

I managed to find a way to do it! I made a gamelogic with a 50/50 probability and then synchronized each object in my base to said gamelogic. I gave each object a name and in the gamelogic put Object1 hideObject true; with the same script for each object. So now the entire base either appears or it doesn't. The problem now is that certain effects, like the camp fire still has lighting and sound when hidden.

Edited by Pillowtap

Share this post


Link to post
Share on other sites

You may want to take a look at objectmapper and objectgrabber

You can record your base and objects and spawn them when required.

For the fire though have you tried object1 inflame false

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×