pedramtolo
Member
hi everyone
can someone help me on this matter
how can i detect my target type
for example in my npc i used these command to select closest target
void self = getlocalvar("self");
void target = findtarget(self);
i use these coomands to realize that my target is player or not and nether of them works
if ( getentityproperty(target,"type")=="TYPE_PLAYER")
if ( getentityproperty(target,"type")==openborvariant ("player") )
thank you so much
can someone help me on this matter
how can i detect my target type
for example in my npc i used these command to select closest target
void self = getlocalvar("self");
void target = findtarget(self);
i use these coomands to realize that my target is player or not and nether of them works
if ( getentityproperty(target,"type")=="TYPE_PLAYER")
if ( getentityproperty(target,"type")==openborvariant ("player") )
thank you so much