dizietemblesssma Posted November 24, 2023 Posted November 24, 2023 I want to reference a property on a script that is attached to a refalias, there will be multiple aliases all with same script attached. The attached script has the following: ;;;the orginal CK default outfit;;; Outfit Property CK_default_outfit Auto and in another script I have: refalias_array[i].ForceRefTo(NPC_ref) refalias_array[i].CK_default_outfit = NPC_ref.GetActorBase().GetOutfit() of course this doesn't work because 'refalias_array' is not a script, but I think it demonstrates what I want to achieve. diziet
IsharaMeradin Posted November 24, 2023 Posted November 24, 2023 refalias_array[i].ForceRefTo(NPC_ref) myRefAlias = refalias_array[i] as ReferenceAlias NameOfRefAliasScript myRefScript = myRefAlias as NameOfRefAliasScript myRefScript.CK_default_outfit = NPC_ref.GetActorBase().GetOutfit() A theoretical starting point, needs to be tested.
dizietemblesssma Posted November 24, 2023 Author Posted November 24, 2023 I've got that to compile when substituting the actual scriptnames:) Thankyou. diziet
Recommended Posts