Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Here is a 2 seperate scripts for enemy follow and enemy attack in case anyone needs it the scripts are free to use and modify edit: i should have mentioned that these scripts also work for in game clones put this code on enemy for examble "every 1000ms execute javascript" and it will attack player when he is close note you will have to change the text wiz to your player note name note. both the player and npc enemy need to have Actor behavior
use this with the this enemy follow script the enemy will start moving towards enemy when he is x a way from player put it on enemy "every 1ms , execute javascript note you will need to change the text player to your player name and change the distance to your liking.
edit i changed the distance variable it was wrong should be < |
||||
|
Great, thanks for the scripts! |
||||
|
Great, thanks! |
||||
|
welcome! |
|