How would I do this? The tag is "tag_inaridetylmarande".
Creature OnPerception, do something when perceiving someone other than PC?
Débuté par
pamelahoward
, déc. 09 2014 11:57
#1
Posté 09 décembre 2014 - 11:57
#2
Posté 09 décembre 2014 - 01:46
This seems like the right general idea but obviously the wrong execution. Any suggestions?
if (GetLastPerceptionSeen() == GetObjectByTag("tag_inaridetylmarande",0)) return;
#3
Posté 09 décembre 2014 - 02:24
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
Posté 09 décembre 2014 - 03:11
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!





Retour en haut






