Jump to content

Recommended Posts

Posted

hi ,

i created a misc item and attached this script to it:

Scriptname DCF_SchematicSupplyCrateNotification extends ObjectReference
	
Event OnActivate(ObjectReference akActionRef)
  Debug.notification("You are now able to build a Supply Crate.")
endEvent

so when you pick it up in-game you get a notification that's what i want so it's working but the problem now is that

the notification shows up every time i pick it up it has to show only the first time. How can i fix that somebody any idea?

Posted
  On 9/2/2018 at 3:11 PM, SandMouseAnarchy said:

You could make it a quest and only run the quest once?

Thnx for your reply i was hoping for a simple way add one line in the script or something.

If it's easy to explain could you tell me how? thnx

Posted

Scriptname DCF_SchematicSupplyCrateNotification extends ObjectReference

Int DoOnce = 0

Event OnActivate(ObjectReference akActionRef)

If (DoOnce == 0)
Debug.Notification("You are now able to build a Supply Crate.")
DoOnce = 1
EndIf

EndEvent
Posted
  On 9/2/2018 at 3:32 PM, morogoth35 said:
Scriptname DCF_SchematicSupplyCrateNotification extends ObjectReference

Int DoOnce = 0

Event OnActivate(ObjectReference akActionRef)

	If (DoOnce == 0)
		Debug.Notification("You are now able to build a Supply Crate.")
		DoOnce = 1
	EndIf
	
EndEvent

 

It worked thank you very much appreciate it :thumbsup:

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...