Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;-UNIVERSAL SLIDER PLACEMENT CHECK FOR ACTORS
- ;-This function is one of the more complex
- ;-It calls ActorSliderPlacement if the appropriate
- ;-settings and conditions are met by X follower
- Function ActorSliderPlacementCheck(Actor ActorRef, GlobalVariable ActorGlobal)
- If ActorRef != NONE
- If !ActorRef.IsDisabled() || IsGlobalTarget(OverRide_G, 1)
- If !ActorRef.IsDead() || IsGlobalTarget(OverRide_G, 1)
- If IsCustomFollower(ActorRef)
- PlaceSliderByActor(ActorRef, ActorGlobal, ActorRef.GetBaseObject().GetName())
- Else
- If ActorRef.GetRelationshipRank(PlayerRef) > 2 || IsGlobalTarget(OverRide_G, 1)
- If IsGlobalTarget(OverRide_G, 1) && IsOverRideAble(ActorRef) || IsGlobalTarget(OverRide_G, 0)
- PlaceSliderByActor(ActorRef, ActorGlobal, ActorRef.GetBaseObject().GetName())
- GlobalCount = GlobalCount+1
- Else
- OID_EmptyText = AddTextOption(ActorRef.GetBaseObject().GetName() +" Is locked in OverRide Mode",0 , OPTION_FLAG_DISABLED)
- Endif
- Else
- OID_EmptyText = AddTextOption("Locked: " +ActorRef.GetBaseObject().GetName(),0 , OPTION_FLAG_DISABLED)
- Endif
- Endif
- Else
- OID_EmptyText = AddTextOption(ActorRef.GetBaseObject().GetName() +" Is Dead",0 , OPTION_FLAG_DISABLED)
- Endif
- Else
- OID_EmptyText = AddTextOption("Locked: " +ActorRef.GetBaseObject().GetName(),0 , OPTION_FLAG_DISABLED)
- Endif
- Elseif ActorRef == NONE
- Bool IsCustomActorSlot = TeamMatesG.Find(ActorGlobal) > -1 && TeamMatesG.Find(ActorGlobal) < 20
- If IsCustomActorSlot
- OID_EmptyText = AddTextOption("Follower Slot: EMPTY",0 , OPTION_FLAG_DISABLED)
- Else
- OID_EmptyText = AddTextOption("Required DLC not found",0 , OPTION_FLAG_DISABLED)
- Endif
- Endif
- Endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement