RedxYeti Posted November 30, 2021 Share Posted November 30, 2021 https://www.creationkit.com/index.php?title=GetName_-_Form Would it be possible to attach more than 1 string onto an if getname statement? as in if GetActorReference().GetLeveledActorBase().GetName() == "Bob" "joe" "bill"Im using a randomint from an array and would like to avoid a bunch of if's. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted November 30, 2021 Share Posted November 30, 2021 No. But you could do: String myName = GetActorReference().GetLeveledActorBase().GetName() If myName == "Bob" || myName == "Joe" || myName == "Bill" Debug.Notification("My name is "+myName) EndIf Link to comment Share on other sites More sharing options...
RedxYeti Posted November 30, 2021 Author Share Posted November 30, 2021 No. But you could do: String myName = GetActorReference().GetLeveledActorBase().GetName() If myName == "Bob" || myName == "Joe" || myName == "Bill" Debug.Notification("My name is "+myName) EndIfthank you, that should save some time. :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts