I have a Spycar from Synty. It has a missile rack with 10 missiles that pop out of the roof. I want to use these for show and have each one get disabled and an AI missile instantiated on top of it everytime one is fired. (The rack is a child and the missiles are grandchildren to the Playercar, but I can change them all to children if I have to).
I need to first name them in an array (roofMissiles[0] = “SM_Veh_SpyCar_RoofMissile_06”
Once I have the GameObjects, I think I can disable them like this:
roofMissiles[indexPointer].SetActive(false)
What’s the code to get a hold of them? Please.