aaronkirkham / jc4-console-thingy

Spawn vehicles, characters, animals, props and mess with the game in Just Cause 4.
MIT License
70 stars 19 forks source link

REQUEST: alias and keybind #18

Open kktos opened 4 years ago

kktos commented 4 years ago

Hi,

it could be nice to be able to define alias on the command line like :

> alias tank="spawn v206_the_name_of_a_tank"

to be able to use afterwards a simple:

> tank

to spawn the beast.

Let's go one step further.

What about multiple commands on a line separated by a semicolon:

> event ply.givemaxammo; event ply.invulnerable; event ply.unlimitedammo

So, with the alias command, we should be able to do a

> alias god="event ply.givemaxammo; event ply.invulnerable; event ply.unlimitedammo"

And the last but not least, what about associate a key to a command:

> key CTRL+F5 tank