Then, if the integer "count" is ==1 , then the player will experience their camera shaking and the screen blurring for a moment. Obviously, this is intended to happen once, so every time the trigger box is entered by another NPC, or entered a second time by the player, that the script for the shaking does not run.
Here is my code, but the compiler doesn't like it. Where have I gone wrong?
Sorry but I am not sure how to make thee message board indent, so I am using spaces to help with readability. Also, if anyone knows of anything that can help me make a good screen shake and rumbling with blurring, or possibly a voice (like a voice in your head), I'd love to learn about it, as thats next on my agenda.
===========================================================
Scriptname DWRumbleShakeTrig extends ObjectReference
{Makes the screen shake etc.}
int count
Actor Property PlayerRef Auto
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef = PlayerRef
count = count + 1
EndIf
If count == 1
Debug.MessageBox("Triggers shaking and rumbling when active")
;here is where the actual code to cause shaking and rumbling will be placed
EndIf
endEvent