Skip to content

Instantly share code, notes, and snippets.

@tj
Created March 18, 2009 19:01
Show Gist options
  • Save tj/81317 to your computer and use it in GitHub Desktop.
Save tj/81317 to your computer and use it in GitHub Desktop.
# 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