Jump to content

Help needed with Papyrus


TheMan21

Recommended Posts

I just wanted to make a fun script which should make the camera shaking when the player lands (jumped and landed)

 

The Script was compiled successfully and I've found the giant script to make the camera shake but I dont know how i can the script to point to the player!

I can add scripts to persons (e.g. Lydia) or other animals/monsters but I cant put it to the player, because I just dont find the player in the creation kit object window.

 

Heres my FIRST script I've ever made:

 

Scriptname shaketestscript extends ObjectReference

Function SomeFunction()
RegisterForAnimationEvent(self, "JumpLand")
EndFunction

Event OnAnimationEvent(ObjectReference akSource, string asEventName)
 if (akSource == self) && (asEventName == "RampRumble")
   Debug.Trace("Cam shakes! Yay!")
 endIf
endEvent

 

If this code is completly wrong, pls tell me how I do it right.

 

Thx for any helpful answer!

 

PS: The giant script I mean is called "giantActorSCRIPT.psc"

PPS: Sorry for my bad English :D

Link to comment
Share on other sites

  • Recently Browsing   0 members

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