Skip to content

Instantly share code, notes, and snippets.

@xanathar
Created May 15, 2015 16:39
Show Gist options
  • Save xanathar/2610597d48377e45d671 to your computer and use it in GitHub Desktop.
Save xanathar/2610597d48377e45d671 to your computer and use it in GitHub Desktop.
Button/Crystal hybrid in log2
defineObject{
name = "xan_heal_button",
components = {
{
class = "Crystal",
cooldown = 0,
},
{
class = "Model",
name = "buttonModel",
model = "assets/models/env/wall_button.fbx",
},
{
class = "Model",
enabled = false,
model = "assets/models/env/wall_button.fbx",
offset = vec(0, -1000, 0),
},
{
class = "Particle",
-- particleSystem = "",
},
{
class = "Animation",
animations = {
press = "assets/animations/env/wall_button_press.fbx",
spin = "assets/animations/env/healing_crystal_spin.fbx",
}
},
{
class = "Clickable",
offset = vec(0,1.375,0),
size = vec(0.25, 0.25, 0.25),
--debugDraw = true,
},
{
class = "Button",
sound = "button",
},
},
placement = "wall",
editorIcon = 12,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment