Alias Help Wanted

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

Alias Help Wanted

Postby shaggy » Tue Apr 03, 2007 6:52 am

ALIAS?

I have tryed to make one myself this is what i have entered:
playermodel models/player/nexus.zym ; playermodel models/player/marine




Could some one tell me how to make them or give an example?
shaggy
Alien trapper
 
Posts: 419
Joined: Tue Apr 03, 2007 6:12 am

Postby esteel » Tue Apr 03, 2007 9:50 am

finally.. Welcome to the forum :)
Its much easier to explain stuff here..
an alias is easy to do. Basically all you have to do is:
Code: Select all
alias NAME COMMAND

and then to use your alias you use NAME. If Command is not just one command you have to seperate them with ; and when COMMAND includes a space or ; you have to surround it with " (which is basicly each time as alias would then be pretty nonsense..)
some examples:
Code: Select all
alias exit quit

alias laser "impulse 1"

alias zoom zoom1
alias zoom1 "fov 90; echo normal; alias zoom zoom2"
alias zoom2 "fov 100; echo more; alias zoom zoom3"
alias zoom3 "fov 110; echo even more; alias zoom zoom4"
alias zoom4 "fov 120; echo still more; alias zoom zoom1"
bind x zoom


If you want aliases to persist create a file Nexuiz/data/autoexec.cfg and write them into there. aliases are never saved but this file is read when Nexuiz starts and this file exists so it will read those aliases then.
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Xeno » Tue Apr 03, 2007 9:38 pm

*sees that esteel has picked up the torch*

my work here is done :P
Xeno
peregrinus originis incognitae
 
Posts: 396
Joined: Wed Nov 15, 2006 10:42 pm


Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron