Create an account

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
toggle help..

hi Smile

"pcolor1 = script"
alias +pcolor1 "pcolor1_on"
alias -pcolor1 "pcolor1_off"
alias pcolor1_on "+pcolor1"
alias pcolor1_off "-pcolor1"
alias +pcolor1 ""
alias -pcolor1 "pcolor1_off"
alias pcolor1_off "alias -pcolor1 pcolor1_on"
alias pcolor1_on "alias -pcolor1 pcolor1_off"
bind b "+pcolor1"

i need a toggle like this one
but i'm a noob on toggle create..

can you tell me what I'm doing wrong Huh

just waht i want is a turn off command
exemple script
alias pcolor1 "color X X; defer X.X pcolor2"
alias pcolor2 "color X X; defer X.X pcolor1"
pcolor1 = on
off = ?? Smile

Quote:alias +pcolor1 "pcolor1_on"
alias -pcolor1 "pcolor1_off"
alias pcolor1_on "+pcolor1"
alias pcolor1_off "-pcolor1"

[Image: genius.jpg]

Eventually you want to create an alias with prior/default values.

I do not know how I interrupt the infinite loop
and I'm a noob with toggles ..

I really don't know what you are trying to do. You want to have pcolor1 and pcolor2 be executed alternatively in a loop, and you also want a way to stop the looping, is that right?

alias pcolor1 "color X; defer 2 pcolor2"
alias pcolor2 "color Y; defer 2 pcolor1"
alias pcolor_stop "defer clear"
This will clear every defer command waiting, though.


set pcolor_continue 0
alias pcolor1_0 ""
alias pcolor2_0 ""
alias pcolor1_1 "color X; defer 2 pcolor2_${pcolor_continue}"
alias pcolor2_1 "color Y; defer 2 pcolor1_${pcolor_continue}"
alias pcolor1 "pcolor_continue 1; pcolor1_1"
alias pcolor_stop "pcolor_continue 0"
This will still do the next pcolor after you do pcolor_stop. It can be avoided but you'll need two more aliases then.

EDIT: You seem to think that there's something special about +/- aliases. That is only true if you bind them to a key: if you bind +foo to space, then +foo is executed when space is pressed down, and -foo is executed when space is depressed.

thx mr. bougo Smile
"defer clear" thats waht i search

alias pcolor1 "color X X; defer X pcolor2"
alias pcolor2 "color X X; defer X pcolor1"
alias pcolor1_on "pcolor1"
alias pcolor1_off "defer clear"

Note that it clears everything in defer, so you can't use two such loops at the same time or defer clear will stop both.

I still have a question
on the console, you can not "color 15 15" I guess
but it must indeed be an entry in a file
could you give me a tip where to start I have to look for

What do you mean? You can use "color X Y" with X and Y between 0 and 15.

Can you explain what you want to do and why it does not work?

sry i mean i cant change the speed "color 15 15" ...
can i edit the speed on a xonotic file ?
if so where can I start looking?

Is color 15 15 the one that gradually changes color? You can't change how fast that goes.

ok thx for the info Smile

Possibly Related Threads…
Thread Author Replies Views Last Post
  cfg conversion help ETPlayer 8 8,657 01-28-2015, 09:16 PM
Last Post: asyyy
  Help with game configuration. Andrii 7 10,538 02-18-2014, 03:39 PM
Last Post: kojn^
  Need help for cfg Shodan 18 14,524 10-20-2013, 01:31 PM
Last Post: Shodan
  Config help K__ 3 5,752 05-01-2012, 11:56 AM
Last Post: asyyy
  Can anyone help me understand player model lod? W4RP1G 7 6,989 04-23-2012, 04:48 AM
Last Post: divVerent

Forum Jump:

Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-