Xgf Posted June 24, 2012 Share Posted June 24, 2012 (edited) simple script question. My example: ReferenceAlias Property Follower AutoActor 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 June 24, 2012 by Xgf Link to comment Share on other sites More sharing options...
steve40 Posted June 26, 2012 Share Posted June 26, 2012 (edited) 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 June 26, 2012 by steve40 Link to comment Share on other sites More sharing options...
Recommended Posts