FirstVaultDweller Posted September 2, 2018 Posted September 2, 2018 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.") endEventso 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 thatthe 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?
SandMouseAnarchy Posted September 2, 2018 Posted September 2, 2018 You could make it a quest and only run the quest once?
FirstVaultDweller Posted September 2, 2018 Author Posted September 2, 2018 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
morogoth35 Posted September 2, 2018 Posted September 2, 2018 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
FirstVaultDweller Posted September 2, 2018 Author Posted September 2, 2018 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:
Recommended Posts