PDA

View Full Version : Simulating Enemy Damage



C-Dawg
05-08-2007, 11:41 AM
(1) Do we have a way to script Link's projectiles yet? That is, can I script and FFC and have enemies react to touching it just like they react to touching one of Link's weapons? Boomerang, Arrow, Wand, etc.

(2) If not, I'm going to be scripting up some sort of workaround this week. I need to calculate the angle between the enemy and the projectile (or link?) and then bump the enemy along it, flash the enemy's C-set, and reduce the enemy's hit points. I assume death animation is dealt with automatically when the enemy's hit points reach 0?

The same algorithm should work in reverse, allowing Link to "damage" custom bosses made up of FFCs like he does in Link's Awakening.