You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@name Prop URL Materialifier
@persist Material:webmaterial
# Author -- Vurv# Works with the e2controller, left click on a prop with this chip selected to change it's material to a webmaterial.# Reload while aiming at that prop to set it's material back to normal.if(first()){URL="https://cdn.discordapp.com/attachments/655295087173042200/778808908181405706/1200px-Lua-Logo.png"
Material = webMaterial(URL)
runOnE2CLeftClick(1)
runOnE2CReload(1)
setE2CSelected(1)}elseif(e2CLeftMouseClk()){# Set a prop's material to the webmaterial
Rng = lastE2CRangerInfo()local TraceEntity = Rng:entity()if(TraceEntity:isValid()){
TraceEntity:setMaterial(Material)}}elseif(e2CReloadClk()){# Reset a prop's material
Rng = lastE2CRangerInfo()local TraceEntity = Rng:entity()if(TraceEntity:isValid()){
TraceEntity:setMaterial(TraceEntity:getMaterials()[1,string])}}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Uses: VExtensions [Webmaterials + Tool Core], Propcore
Beta Was this translation helpful? Give feedback.
All reactions