Team Spartan Cookies & Milk Forums
Is there a way to change a prop's submaterial? - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Expression 2 (https://teamscm.co.uk/forum-6.html)
+--- Thread: Is there a way to change a prop's submaterial? (/thread-1994.html)



Is there a way to change a prop's submaterial? - Ethan Vondwarf - 25-10-2016

Sharp and I are trying to find a way to make an alarm light like destiny's when Future Destiny blows up.
this is what i was thinking so far
Code:
@name @inputs On Prop:entity @outputs @persist [M1 M2]:string @trigger M1 = "models/props/destinymetal2" M2 = "models/props/destiny_gateroom_light" if(On){ timer("On",1) } else{ stopAllTimers() } if(clk("Off")){ Prop:setSubMaterial(2,M1) }



RE: Is there a way to change a prop's submaterial? - Sharp - 26-10-2016

Just like in this clip (3:26):



RE: Is there a way to change a prop's submaterial? - The17thDoctor - 27-10-2016

During the 4 mins of the clip i was like disconnected from the world Tongue