Site Tools
t2:gpc_scripting:examples_1
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
t2:gpc_scripting:examples_1 [2021/03/09 17:29] scachi [GPC Script Examples] |
t2:gpc_scripting:examples_1 [2021/03/09 17:38] (current) scachi [Script On/Off] |
||
---|---|---|---|
Line 254: | Line 254: | ||
Press [Touch-Click|View] + [CROSS|A] to quickly enable/disable the script without unload the Memory Slot. | Press [Touch-Click|View] + [CROSS|A] to quickly enable/disable the script without unload the Memory Slot. | ||
<code gpc2> | <code gpc2> | ||
- | script toggle code here | + | bool bScript=FALSE; |
+ | |||
+ | main { | ||
+ | // Playstation: Touch-Click + CROSS , XBox: View + A | ||
+ | if (get_actual(BUTTON_2) && event_active(BUTTON_16)) bScript = !bScript; | ||
+ | |||
+ | if (bScript) { | ||
+ | // Add your code to run when script is enabled here | ||
+ | |||
+ | } | ||
+ | } | ||
</code> | </code> | ||
===== Anti Recoil ===== | ===== Anti Recoil ===== |
t2/gpc_scripting/examples_1.txt · Last modified: 2021/03/09 17:38 by scachi