Difference between revisions of "Category:Events"
imported>Valie m |
imported>Qazaaq (Changes to category text.) |
||
Line 1: | Line 1: | ||
Here you can find topics related to Papyrus events. | |||
== Events == | |||
*[[Events Reference]] | |||
*[[Remote_Papyrus_Event_Registration|Remote Events]] | |||
*[[Custom_Papyrus_Events|Custom Events]] | |||
= | = About Events = | ||
Events are not like the old block types. When you make an event in your script that extends ObjectReference or ReferenceAlias you are essentially creating a new version of that event, and you need to declare it with the same number of parameters. Those parameters are then used inside the script. | Events are not like the old block types. When you make an event in your script that extends ObjectReference or ReferenceAlias you are essentially creating a new version of that event, and you need to declare it with the same number of parameters. Those parameters are then used inside the script. | ||
Latest revision as of 11:48, 20 April 2017
Here you can find topics related to Papyrus events.
Events[edit | edit source]
About Events[edit | edit source]
Events are not like the old block types. When you make an event in your script that extends ObjectReference or ReferenceAlias you are essentially creating a new version of that event, and you need to declare it with the same number of parameters. Those parameters are then used inside the script.
You should pretty much just copy and paste the events straight from the wiki, unless you desire to change the name of the parameters for some reason (but I can't think of a reason).
For example:
Event OnHit(ObjectReference akAggressor, Form akWeapon, Projectile akProjectile)
EndEvent
You might be tempted to try something like this:
Event OnHit(Game.GetPlayer())
EndEvent
But that DOES NOT work.
Instead what you need to do is something like this:
Event OnHit(ObjectReference akAggressor, Form akWeapon, Projectile akProjectile)
if akAggressor == game.getPlayer()
;do something
endif
EndEvent
Subcategories
This category has only the following subcategory.
R
Pages in category "Events"
The following 136 pages are in this category, out of 136 total.
O
- OnAction - Scene
- OnActivate - ObjectReference
- OnAliasInit - Alias
- OnAliasReset - Alias
- OnAliasShutdown - Alias
- OnAnimationEvent - ScriptObject
- OnAnimationEventUnregistered - ScriptObject
- OnBegin - Scene
- OnBegin - TopicInfo
- OnBeginState - ScriptObject
- OnCellAttach - ObjectReference
- OnCellDetach - ObjectReference
- OnCellLoad - ObjectReference
- OnChange - Package
- OnClose - ObjectReference
- OnCombatStateChanged - Actor
- OnCommandModeCompleteCommand - Actor
- OnCommandModeEnter - Actor
- OnCommandModeExit - Actor
- OnCommandModeGiveCommand - Actor
- OnCompanionDismiss - Actor
- OnConsciousnessStateChanged - Actor
- OnContainerChanged - ObjectReference
- OnControlDown - ScriptObject
- OnControlUp - ScriptObject
- OnCripple - Actor
- OnDeath - Actor
- OnDeferredKill - Actor
- OnDestructionStageChanged - ObjectReference
- OnDifficultyChanged - Actor
- OnDistanceGreaterThan - ScriptObject
- OnDistanceLessThan - ScriptObject
- OnDying - Actor
- OnEffectFinish - ActiveMagicEffect
- OnEffectStart - ActiveMagicEffect
- OnEnd - Package
- OnEnd - Scene
- OnEnd - TopicInfo
- OnEndState - ScriptObject
- OnEnterBleedout - Actor
- OnEnterSneaking - Actor
- OnEntryRun - Perk
- OnEquipped - ObjectReference
- OnEscortWaitStart - Actor
- OnEscortWaitStop - Actor
- OnExitFurniture - ObjectReference
- OnFurnitureEvent - ScriptObject
- OnGainLOS - ScriptObject
- OnGetUp - Actor
- OnGrab - ObjectReference
- OnHit - ScriptObject
- OnHolotapeChatter - ObjectReference
- OnHolotapePlay - ObjectReference
- OnInit - ScriptObject
- OnItemAdded - ObjectReference
- OnItemEquipped - Actor
- OnItemRemoved - ObjectReference
- OnItemUnequipped - Actor
- OnKeyDown - ScriptObject
- OnKeyUp - ScriptObject
- OnKill - Actor
- OnLoad - ObjectReference
- OnLocationChange - Actor
- OnLocationCleared - Location
- OnLocationLoaded - Location
- OnLockStateChanged - ObjectReference
- OnLooksMenuEvent - ScriptObject
- OnLostLOS - ScriptObject
- OnMagicEffectApply - ScriptObject
- OnMenuItemRun - Terminal
- OnMenuOpenCloseEvent - ScriptObject
- OnOpen - ObjectReference
- OnPackageChange - Actor
- OnPackageEnd - Actor
- OnPackageStart - Actor
- OnPartialCripple - Actor
- OnPhaseBegin - Scene
- OnPhaseEnd - Scene
- OnPickpocketFailed - Actor
- OnPipboyRadioDetection - ObjectReference
- OnPlayerCameraState - ScriptObject
- OnPlayerCreateRobot - Actor
- OnPlayerDialogueTarget - ObjectReference
- OnPlayerEnterVertibird - Actor
- OnPlayerFallLongDistance - Actor
- OnPlayerFireWeapon - Actor
- OnPlayerHealTeammate - Actor
- OnPlayerLoadGame - Actor
- OnPlayerModArmorWeapon - Actor
- OnPlayerModRobot - Actor
- OnPlayerSleepStart - ScriptObject
- OnPlayerSleepStop - ScriptObject
- OnPlayerSwimming - Actor
- OnPlayerTeleport - ScriptObject
- OnPlayerUseWorkBench - Actor
- OnPlayerWaitStart - ScriptObject
- OnPlayerWaitStop - ScriptObject
- OnPowerOff - ObjectReference
- OnPowerOn - ObjectReference
- OnQuestInit - Quest
- OnQuestShutdown - Quest
- OnRaceSwitchComplete - Actor
- OnRadiationDamage - ScriptObject
- OnRead - ObjectReference
- OnRelease - ObjectReference
- OnReset - ObjectReference
- OnSell - ObjectReference
- OnSit - Actor
- OnSpeechChallengeAvailable - Actor
- OnSpellCast - ObjectReference
- OnStageSet - Quest
- OnStart - Package
- OnStoryIncreaseLevel - Quest
- OnTimer - ScriptObject
- OnTimerGameTime - ScriptObject
- OnTrackedStatsEvent - ScriptObject
- OnTranslationAlmostComplete - ObjectReference
- OnTranslationComplete - ObjectReference
- OnTranslationFailed - ObjectReference
- OnTrapHitStart - ObjectReference
- OnTrapHitStop - ObjectReference
- OnTriggerEnter - ObjectReference
- OnTriggerLeave - ObjectReference
- OnTutorialEvent - ScriptObject
- OnUnequipped - ObjectReference
- OnUnload - ObjectReference
- OnWorkshopMode - ObjectReference
- OnWorkshopNPCTransfer - ObjectReference
- OnWorkshopObjectDestroyed - ObjectReference
- OnWorkshopObjectGrabbed - ObjectReference
- OnWorkshopObjectMoved - ObjectReference
- OnWorkshopObjectPlaced - ObjectReference
- OnWorkshopObjectRepaired - ObjectReference