The Dink Network

Reply to Re: attempting two player dink

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:
 
 
October 1st 2007, 07:55 AM
wizardb.gif
Endy
Peasant He/Him United States
 
The NPC could have a vision radius aswell, so he could realisticly respond to closer attackers or the player. The bonca enemy scripts in the Weather Demo have a version of this, if anyone's interested.

Shouldn't be too hard to check the distance between the NPC and all the enemies, then you could have them decide wether to use a distance attack or close range from there.

Might be easiest to seperate the attacks into different scripts, then swap between them.