;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname dcc_dm_DiagTrade1 Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE

Bool ShouldCancel = !akSpeaker.IsPlayerTeammate()

akSpeaker.SetPlayerTeammate(TRUE)
akSpeaker.OpenInventory(TRUE)
Utility.Wait(0.25)

If(ShouldCancel)
	akSpeaker.SetPlayerTeammate(FALSE)
EndIf

;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment
