Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: MrGVSV on August 09, 2016, 02:32:58 am
Title: Fading Brushmodels
Post by: MrGVSV on August 09, 2016, 02:32:58 am
I just wrote a script (it's based around MakeCents' awesome window breakables prefab link: https://ugx-mods.com/forum/index.php?topic=4602.0) that lets me simulate glass shattering upon shooting at it. However, once the brushmodels get launched in whatever direction,they still have their collision which makes navigating passed them in-game difficult. Any way I could remove their collision and/or have them fade away (the delete() function is just so ugly).
This is the code I thread to in my mapname.gsc
(Side note: the playsound functions don't seem to work :-\) Any help is appreciated!
Title: Re: Fading Brushmodels
Post by: death_reaper0 on August 09, 2016, 07:10:52 pm
for the sound try
Title: Re: Fading Brushmodels
Post by: BluntStuffy on August 09, 2016, 07:36:56 pm
Quote
Any way I could remove their collision
You cant have them fade out, maybe you could let them sink into the ground before you delete them. You could also try this, from animscripts\death.gsc:
Title: Re: Fading Brushmodels
Post by: vinnyz500 on August 09, 2016, 11:05:18 pm
Or to put it simply, make those brush models non colliding... Right click in 3D view and click non colliding EDIT: If collision is a problem before breaking, make a clip and delete it or move it when you break the glass