Last active
April 22, 2022 03:19
-
-
Save mrowrpurr/6f95dd06df4a64ad1b1b7ad66ad10b98 to your computer and use it in GitHub Desktop.
NewBindings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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