mirror of
https://github.com/spencershepard/RotorOps.git
synced 2025-11-10 15:45:30 +00:00
Updated RotorOps PERKS (markdown)
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user