Skip to content

Instantly share code, notes, and snippets.

@mrowrpurr
Last active April 22, 2022 03:19
Show Gist options
  • Select an option

  • Save mrowrpurr/6f95dd06df4a64ad1b1b7ad66ad10b98 to your computer and use it in GitHub Desktop.

Select an option

Save mrowrpurr/6f95dd06df4a64ad1b1b7ad66ad10b98 to your computer and use it in GitHub Desktop.
NewBindings
ScriptName [Properties...]
FunctionName [Arguments...]
ScriptName *Selector*
EventName [Event Conditions] FunctionName [Arguments...]
ActionName [Argments...]
... AND WICKED BADASS PAPYRUS FUNCTIONS
# -------------------------------
OnHit Source=[Spell]:*Fire* Target=PlayerRef MyScript.MyFunction
# -------------------------------
# Helpers for adding things to objects
AddSpell <SPELL SELECTOR> TO <SELECTOR>
AddItem <ITEM SELECTOR> TO <SELECTOR>
AddPerk <PERK SELECTOR> TO <SELECTOR>
Disable <SELECTOR>
Kill <SELECTOR>
# Helpers for handling CommonLib-supported events
WHEN OnLocationChanged
AND actor=PlayerRef
CALL SomeScript.SomeCallback
WITH Arg1=[1, 2, 3] # <--- is addition to the event arguments
FOREACH <SELECTOR> CALL SomeScript.SomeFn
WHEN OnNewObjectRefernece # our event when new objectrefr spawn
...
# Bindings...
BIND MyScript TO <SELECTOR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment