I'm trying to future out how to process all records that meet some condition. It seem like I should be able to use a custom filter and the Process function but so far that doesn't seem to work. It applies the custom filter then stops. Here is the example test code:
unit ApplyCustomScripted;functionFilter(e:IInterface):Boolean;beginResult:=GetElementNativeValues(e,'Record Header\Record Flags\Shield')<>0;end;functionInitialize:Integer;beginFilterConflictAll:=False;FilterConflictThis:=False;FilterByInjectStatus:=False;FilterInjectStatus:=False;FilterByNotReachableStatus:=False;FilterNotReachableStatus:=False;FilterByReferencesInjectedStatus:=False;FilterReferencesInjectedStatus:=False;FilterByEditorID:=False;FilterEditorID:='';FilterByName:=False;FilterName:='';FilterByBaseEditorID:=False;FilterBaseEditorID:='';FilterByBaseName:=False;FilterBaseName:='';FilterScaledActors:=False;FilterByPersistent:=False;FilterPersistent:=False;FilterUnnecessaryPersistent:=False;FilterMasterIsTemporary:=False;FilterIsMaster:=False;FilterPersistentPosChanged:=False;FilterDeleted:=False;FilterByVWD:=False;FilterVWD:=False;FilterByHasVWDMesh:=False;FilterHasVWDMesh:=False;FilterBySignature:=True;FilterSignatures:='ARMO';FilterByBaseSignature:=False;FilterBaseSignatures:='';FlattenBlocks:=False;FlattenCellChilds:=False;AssignPersWrldChild:=False;InheritConflictByParent:=False;// color conflictsFilterScripted:=True;// use custom Filter() functionApplyFilter;end;functionProcess(e:IInterface): integer;beginAddMessage(GetElementEditValues(e,'FULL'));end;end.
If I want to preform some action on all shields or all axes only what is the best way to do that.
Question
IWantMyMod
Hello.
I'm trying to future out how to process all records that meet some condition. It seem like I should be able to use a custom filter and the Process function but so far that doesn't seem to work. It applies the custom filter then stops. Here is the example test code:
If I want to preform some action on all shields or all axes only what is the best way to do that.
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now