modified launchprojectile, fixed spelling error in onattributevalue