Jump to content

Recommended Posts

Hello All, 

 

I was wondering is there anyway that you can randomize a state of a model when it is placed down in the game. I have 2 models, I have a normal soda can and I also have a crushed one. I am interested to know instead of having 2 classes for each model,  can I have just one class name and have it randomly select either the can will be crushed or not crushed.

 

I am generally stuck and I have no idea if this idea is possible. 

 

Thanks, 

 

Welshy 

Share this post


Link to post
Share on other sites

You can use a init eventhandler script to sometimes replace the model by the crushed one when you spawn it.
Or you could use model.cfg animations. There is a animationSource that's random per object placement.

Share this post


Link to post
Share on other sites

put both models in one p3d and use the hide animation on both. randomise in the init that way how it looks.

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

×