diff --git a/Sample Scripts/APIs/GetPrefabInstanceAmbient1.lua b/Sample Scripts/APIs/GetPrefabInstanceAmbient1.lua new file mode 100644 index 00000000..dd2704e6 --- /dev/null +++ b/Sample Scripts/APIs/GetPrefabInstanceAmbient1.lua @@ -0,0 +1,20 @@ +--Copyright (C) 2023 Ehsan Kamrani +--This file is licensed and distributed under MIT license + +--Explanations: https://vanda3d.org/getprefabinstanceambient/ + +r = 0.0 +g = 0.0 +b = 0.0 + +function Init() + r, g, b = GetPrefabInstanceAmbient("1_VandaEngine17-SamplePack1_wood_pile") + + message = string.format("\nAmbient color is : (%.2f, %.2f, %.2f)", r, g, b) + PrintConsole(message) +end + +function Update() + +end + diff --git a/Sample Scripts/APIs/GetPrefabInstanceAmbient2.lua b/Sample Scripts/APIs/GetPrefabInstanceAmbient2.lua new file mode 100644 index 00000000..e3257d98 --- /dev/null +++ b/Sample Scripts/APIs/GetPrefabInstanceAmbient2.lua @@ -0,0 +1,22 @@ +--Copyright (C) 2023 Ehsan Kamrani +--This file is licensed and distributed under MIT license + +--Explanations: https://vanda3d.org/getprefabinstanceambient/ + +--Name of script is GetPrefabInstanceAmbient2.lua + +r = 0.0 +g = 0.0 +b = 0.0 + +function Init() + r, g, b = GetPrefabInstanceAmbient("this") + + message = string.format("\nAmbient color is : (%.2f, %.2f, %.2f)", r, g, b) + PrintConsole(message) +end + +function Update() + +end + diff --git a/Sample Scripts/APIs/GetPrefabInstanceDiffuse1.lua b/Sample Scripts/APIs/GetPrefabInstanceDiffuse1.lua new file mode 100644 index 00000000..aa2cb6d6 --- /dev/null +++ b/Sample Scripts/APIs/GetPrefabInstanceDiffuse1.lua @@ -0,0 +1,19 @@ +--Copyright (C) 2023 Ehsan Kamrani +--This file is licensed and distributed under MIT license + +--Explanations: https://vanda3d.org/getprefabinstancediffuse/ + +r = 0.0 +g = 0.0 +b = 0.0 + +function Init() + r, g, b = GetPrefabInstanceDiffuse("1_VandaEngine17-SamplePack1_wood_pile") + + message = string.format("\nDiffuse color is : (%.2f, %.2f, %.2f)", r, g, b) + PrintConsole(message) +end + +function Update() + +end diff --git a/Sample Scripts/APIs/GetPrefabInstanceDiffuse2.lua b/Sample Scripts/APIs/GetPrefabInstanceDiffuse2.lua new file mode 100644 index 00000000..ff4b7fef --- /dev/null +++ b/Sample Scripts/APIs/GetPrefabInstanceDiffuse2.lua @@ -0,0 +1,21 @@ +--Copyright (C) 2023 Ehsan Kamrani +--This file is licensed and distributed under MIT license + +--Explanations: https://vanda3d.org/getprefabinstancediffuse/ + +-- Name of script is GetPrefabInstanceDiffuse2.lua + +r = 0.0 +g = 0.0 +b = 0.0 + +function Init() + r, g, b = GetPrefabInstanceDiffuse("this") + + message = string.format("\nDiffuse color is : (%.2f, %.2f, %.2f)", r, g, b) + PrintConsole(message) +end + +function Update() + +end diff --git a/Sample Scripts/APIs/GetPrefabInstanceEmission1.lua b/Sample Scripts/APIs/GetPrefabInstanceEmission1.lua new file mode 100644 index 00000000..08960db1 --- /dev/null +++ b/Sample Scripts/APIs/GetPrefabInstanceEmission1.lua @@ -0,0 +1,19 @@ +--Copyright (C) 2023 Ehsan Kamrani +--This file is licensed and distributed under MIT license + +--Explanations: https://vanda3d.org/getprefabinstanceemission/ + +r = 0.0 +g = 0.0 +b = 0.0 + +function Init() + r, g, b = GetPrefabInstanceEmission("1_VandaEngine17-SamplePack1_wood_pile") + + message = string.format("\nEmission color is : (%.2f, %.2f, %.2f)", r, g, b) + PrintConsole(message) +end + +function Update() + +end diff --git a/Sample Scripts/APIs/GetPrefabInstanceEmission2.lua b/Sample Scripts/APIs/GetPrefabInstanceEmission2.lua new file mode 100644 index 00000000..8bdd48c1 --- /dev/null +++ b/Sample Scripts/APIs/GetPrefabInstanceEmission2.lua @@ -0,0 +1,21 @@ +--Copyright (C) 2023 Ehsan Kamrani +--This file is licensed and distributed under MIT license + +--Explanations: https://vanda3d.org/getprefabinstanceemission/ + +--Name of script is GetPrefabInstanceEmission2.lua + +r = 0.0 +g = 0.0 +b = 0.0 + +function Init() + r, g, b = GetPrefabInstanceEmission("this") + + message = string.format("\nEmission color is : (%.2f, %.2f, %.2f)", r, g, b) + PrintConsole(message) +end + +function Update() + +end diff --git a/Sample Scripts/APIs/GetPrefabInstanceShininess1.lua b/Sample Scripts/APIs/GetPrefabInstanceShininess1.lua new file mode 100644 index 00000000..c483a09b --- /dev/null +++ b/Sample Scripts/APIs/GetPrefabInstanceShininess1.lua @@ -0,0 +1,17 @@ +--Copyright (C) 2023 Ehsan Kamrani +--This file is licensed and distributed under MIT license + +--Explanations: https://vanda3d.org/getprefabinstanceshininess/ + +value = 0.0 + +function Init() + value = GetPrefabInstanceShininess("1_VandaEngine17-SamplePack1_wood_pile") + + message = string.format("\nShininess is : (%.2f)", value) + PrintConsole(message) +end + +function Update() + +end diff --git a/Sample Scripts/APIs/GetPrefabInstanceShininess2.lua b/Sample Scripts/APIs/GetPrefabInstanceShininess2.lua new file mode 100644 index 00000000..a6c38bb7 --- /dev/null +++ b/Sample Scripts/APIs/GetPrefabInstanceShininess2.lua @@ -0,0 +1,19 @@ +--Copyright (C) 2023 Ehsan Kamrani +--This file is licensed and distributed under MIT license + +--Explanations: https://vanda3d.org/getprefabinstanceshininess/ + +--Name of script is GetPrefabInstanceShininess2.lua + +value = 0.0 + +function Init() + value = GetPrefabInstanceShininess("this") + + message = string.format("\nShininess is : (%.2f)", value) + PrintConsole(message) +end + +function Update() + +end diff --git a/Sample Scripts/APIs/GetPrefabInstanceSpecular1.lua b/Sample Scripts/APIs/GetPrefabInstanceSpecular1.lua new file mode 100644 index 00000000..72f36373 --- /dev/null +++ b/Sample Scripts/APIs/GetPrefabInstanceSpecular1.lua @@ -0,0 +1,19 @@ +--Copyright (C) 2023 Ehsan Kamrani +--This file is licensed and distributed under MIT license + +--Explanations: https://vanda3d.org/getprefabinstancespecular/ + +r = 0.0 +g = 0.0 +b = 0.0 + +function Init() + r, g, b = GetPrefabInstanceSpecular("1_VandaEngine17-SamplePack1_wood_pile") + + message = string.format("\nSpecular color is : (%.2f, %.2f, %.2f)", r, g, b) + PrintConsole(message) +end + +function Update() + +end diff --git a/Sample Scripts/APIs/GetPrefabInstanceSpecular2.lua b/Sample Scripts/APIs/GetPrefabInstanceSpecular2.lua new file mode 100644 index 00000000..b9e22bdd --- /dev/null +++ b/Sample Scripts/APIs/GetPrefabInstanceSpecular2.lua @@ -0,0 +1,21 @@ +--Copyright (C) 2023 Ehsan Kamrani +--This file is licensed and distributed under MIT license + +--Explanations: https://vanda3d.org/getprefabinstancespecular/ + +--Name of script is GetPrefabInstanceSpecular2.lua + +r = 0.0 +g = 0.0 +b = 0.0 + +function Init() + r, g, b = GetPrefabInstanceSpecular("this") + + message = string.format("\nSpecular color is : (%.2f, %.2f, %.2f)", r, g, b) + PrintConsole(message) +end + +function Update() + +end diff --git a/Sample Scripts/APIs/GetPrefabInstanceTransparency1.lua b/Sample Scripts/APIs/GetPrefabInstanceTransparency1.lua new file mode 100644 index 00000000..22c87b27 --- /dev/null +++ b/Sample Scripts/APIs/GetPrefabInstanceTransparency1.lua @@ -0,0 +1,17 @@ +--Copyright (C) 2023 Ehsan Kamrani +--This file is licensed and distributed under MIT license + +--Explanations: https://vanda3d.org/getprefabinstancetransparency/ + +value = 0.0 + +function Init() + value = GetPrefabInstanceTransparency("1_VandaEngine17-SamplePack1_wood_pile") + + message = string.format("\nTransparency is : (%.2f)", value) + PrintConsole(message) +end + +function Update() + +end diff --git a/Sample Scripts/APIs/GetPrefabInstanceTransparency2.lua b/Sample Scripts/APIs/GetPrefabInstanceTransparency2.lua new file mode 100644 index 00000000..1fcfdcc0 --- /dev/null +++ b/Sample Scripts/APIs/GetPrefabInstanceTransparency2.lua @@ -0,0 +1,19 @@ +--Copyright (C) 2023 Ehsan Kamrani +--This file is licensed and distributed under MIT license + +--Explanations: https://vanda3d.org/getprefabinstancetransparency/ + +--Name of script is GetPrefabInstanceTransparency2.lua + +value = 0.0 + +function Init() + value = GetPrefabInstanceTransparency("this") + + message = string.format("\nTransparency is : (%.2f)", value) + PrintConsole(message) +end + +function Update() + +end