Skip to content

Instantly share code, notes, and snippets.

@tj

tj/gist:81317

Created Mar 18, 2009
Embed
What would you like to do?
# Torque Alternative Syntax
unless is_object(FollowMouseBehavior)
:template = new BehaviorTemplate(FollowMouseBehavior)
:template
.friendly_name = "..."
.behavior_type = "..."
.description = "..."
:template
.add_behavior_field(flip_x, "...", bool, true)
.add_behavior_field(follow_x, "...", bool, true)
.add_behavior_field(follow_x, "...", bool, true)
.add_behavior_field(tracking_speed, "...", float, 15.0)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment