Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (TipmyPip, AndrewAMD, dBc, clonman), 18,621 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
enemy detecting enemy? #359072
02/15/11 15:07
02/15/11 15:07
Joined: Sep 2010
Posts: 97
C
carla_mariz Offline OP
Junior Member
carla_mariz  Offline OP
Junior Member
C

Joined: Sep 2010
Posts: 97
hi,

is there any way on how can i avoid the enemies to detect each other? i used path to make them move around and then breaks the loop when the player comes close. each enemy has different path so they would not merge. and also they are far away from each other. but when i run it, the other enemy would chase the another enemy. how can i avoid this?

thank you! laugh

Re: enemy detecting enemy? [Re: carla_mariz] #359093
02/15/11 16:45
02/15/11 16:45
Joined: Dec 2010
Posts: 87
R
romin2011 Offline
Junior Member
romin2011  Offline
Junior Member
R

Joined: Dec 2010
Posts: 87
After c_scan put

if(you==player)
{
it has detected the player so put your chasing code here laugh
}

Re: enemy detecting enemy? [Re: carla_mariz] #359095
02/15/11 16:57
02/15/11 16:57
Joined: Nov 2010
Posts: 96
Vienna
S
Schubido Offline
Junior Member
Schubido  Offline
Junior Member
S

Joined: Nov 2010
Posts: 96
Vienna
Or you can use c_ignore(...)


Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1