Any one can make a tutorial on how to make a toggle on/off?
Request How We Make A Toggle?
|
(07-25-2011, 14:25)Scripts18 Wrote: Any one can make a tutorial on how to make a toggle on/off? Something like Code: Trigger_function() Should look something like this, but thats definately wrong because i dont know the right comments atm, but it should be something similiar to this
07-25-2011, 14:46
(07-25-2011, 14:34)prisma Wrote:(07-25-2011, 14:25)Scripts18 Wrote: Any one can make a tutorial on how to make a toggle on/off? thx but any one can show me a working toggle so I can learn from it :S I learn easier when I look at a working one
07-25-2011, 15:18
Instead of [Tutorial] choose [Request].
07-25-2011, 15:22
(This post was last modified: 07-25-2011, 15:23 by Madnesslink5.)
PHP Code: ThirdPerson() Just call this function whenever you need the toggle to be activated.
07-25-2011, 17:08
(07-25-2011, 15:22)Madnesslink5 Wrote: but how I desactivate after?
07-25-2011, 17:18
where do you need to add these lines, just in _rank.gsc beneath OnPlayerSpawn?
07-25-2011, 17:50
add to init
Code: //set the variable so it doesnt error when we want to use it. add to on spawned Code: //start the thread Add this anywhere in ur on spawned file Code: ThirdPerson() Each time you hit action slot 3, what ever its bound to which will display when you spawn, it will toggle them(if they are the right dvars).. not sure any of these dvars work in BO its just an example.
07-25-2011, 19:27
^to the above, it does work. Took the code out of my mod
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Make area detect. flag Teleport | lewisbibo | 4 | 5,015 |
10-12-2013, 18:10 Last Post: EnVi Sweden Rocks |
|
Make Platforme | lewisbibo | 5 | 5,012 |
10-08-2013, 14:35 Last Post: 8q4s8 |
|
Make obj MW3.by lewisbibo | lewisbibo | 3 | 3,714 |
10-05-2013, 20:16 Last Post: Nekochan |
|
Make obj MW3.by lewisbibo | lewisbibo | 0 | 2,342 |
10-03-2013, 20:19 Last Post: lewisbibo |
|
Help need help?how to make plugins code | hXnarutoXone | 12 | 8,626 |
09-01-2013, 18:30 Last Post: Bandarigoda123 |
|
Help Make ac130 shoot custom bullets | Ra3shed | 0 | 2,744 |
07-23-2013, 13:02 Last Post: Ra3shed |
|
how to make a plugin (mod) | E-losev | 5 | 4,361 |
07-12-2013, 15:48 Last Post: OzonE |
|
[Release] Make Trees Fall | Yamato | 8 | 12,351 |
06-15-2013, 11:45 Last Post: xfxtroll |
|
How to make superjump mod TDM sniper | hipperz | 4 | 4,000 |
03-28-2013, 15:09 Last Post: hillbilly |
|
Help Make Waypoint | FaiR_PLaY | 10 | 6,386 |
02-12-2013, 13:09 Last Post: archit |
Users browsing this thread: |
2 Guest(s) |