Jump to content

simple script script question.. But I still spinning ;-)


Xgf

Recommended Posts

simple script question.

 

My example:

 

ReferenceAlias Property Follower Auto

Actor MyFollower

 

Event OnActivate(Objectreference akActionref)

 

MyFollower = Follower.GetActorRef()

 

**** now I can do anything. But i need the name eg. Lydia of this Character ... how to ask the name via script?

 

EndEvent

 

Thank you for your help ;-)

Edited by Xgf
Link to comment
Share on other sites

You can't query the name directly, afaik. You could put a keyword on the actor to identify them (assuming they don't already have one), then check for the presence of the keyword. You can also pass the name to some messages and such via Text Replacement.

 

Edit: or alternatively, if you have made a specific alias for Lydia, you could just do: "if myLydiaRef.GetActorRef() == akActionref" I suppose.

Edited by steve40
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...