Post: Same command for two buttons?
12-18-2010, 03:45 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); How do you notify the same command for two actionslots without writing 2 different functions?

for example...

If I want to print something if I press left or right..


    self notifyOnPlayerCommand( "R", "+actionslot 4" );
self notifyOnPlayerCommand( "L", "+actionslot 3" );
for(;Winky Winky {
self waittill( "R" );
self waittill( "L" );
if(self.PickedNumber = 0){iprintlnbold("text");}


that doesn't work unless you press Left AND Right !!

Im thinking i need the || (or) command but is there another way?


(I'm not expecting lots of replies.. Are you there Mossy?!) Smile
(adsbygoogle = window.adsbygoogle || []).push({});
12-19-2010, 03:34 AM #2
Whats wrong with using the || Or command?
12-19-2010, 11:11 AM #3
Originally posted by level42 View Post
Whats wrong with using the || Or command?


Because its not working :(
12-19-2010, 11:23 AM #4
Merkii
Former Staff
EM I got it working before for like when i press left i got godmod and if i press again godmode disables and no clip enables
12-19-2010, 01:44 PM #5
Originally posted by ginjlovestohack View Post
EM I got it working before for like when i press left i got godmod and if i press again godmode disables and no clip enables


Thats not what i'm trying to do..
12-19-2010, 02:14 PM #6
Geeqoh
Be the change you want to see in the world.
EDIT: Oh, i think it can't be possible, but you can do like chocolates, crouch and the dpad and then stand and the same dpad. IDK i'm bad coder Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo