Aller au contenu

Photo

Creature OnPerception, do something when perceiving someone other than PC?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
pamelahoward

pamelahoward
  • Members
  • 9 messages

How would I do this? The tag is "tag_inaridetylmarande".



#2
pamelahoward

pamelahoward
  • Members
  • 9 messages

This seems like the right general idea but obviously the wrong execution. Any suggestions?

if (GetLastPerceptionSeen() == GetObjectByTag("tag_inaridetylmarande",0)) return;


#3
Thayan

Thayan
  • Members
  • 244 messages

GetLastPerceptionSeen returns an int, and you can't compare an int to an object. It would have to go something like:

 

object oPerceived = GetLastPerceived();

if (GetTag(oPerceived) == "InsertYourTagHere" && GetLastPerceptionSeen()) {

  //Do stuff here

}



#4
pamelahoward

pamelahoward
  • Members
  • 9 messages

GetLastPerceptionSeen returns an int, and you can't compare an int to an object. It would have to go something like:

 

object oPerceived = GetLastPerceived();

if (GetTag(oPerceived) == "InsertYourTagHere" && GetLastPerceptionSeen()) {

  //Do stuff here

}

Works perfectly, I see exactly what I did wrong. Thank you!