Updated RotorOps PERKS (markdown)

spencershepard
2023-01-31 17:26:03 -08:00
parent e7410e9252
commit faf3f5b250

@@ -73,6 +73,15 @@ The script is desinged to be easy to create your own perks for your use or to ea
- Max uses per mission
- Points cost
You can easily change perk options from a do script, if you don't want to edit the script file. For example, you could do this any time after the script loads:
```
RotorOpsPerks.perks.fatcow.cost=100
RotorOpsPerks.perks.fatcow.cooldown=60
RotorOpsPerks.perks.fatcow.max_per_player=1
RotorOpsPerks.perks.fatcow.max_per_mission=4
```
### Creating Perks
You can create your own perks by modifying the script, or from another script after the perks script has loaded (preferred method). The radio menu and all other aspects are handled automatically. First define a function that will fire when the perk is activated by a player. Then add the perk table to RotorOpsPerks.perks, like below: