The Dink Network

Reply to Re: Code for enemy hit?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
December 3rd 2010, 08:19 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Yep, this is basically it. You need to add this code to every enemy script. Although it seems like an annoying thing to do, it does also allow you to make certain enemies (undead? machines?) immune to the effect by not including the code in their scripts. I would strongly suggest making an external script for these extra effects so you can just include one line inside the enemy scripts that calls the external.