Parameters

Parameters

In addition to performing actions, Jahro commands can also receive and use input parameters. You can specify up to 3 parameters for each command, offering a wide range of possibilities for customizing your game logic at runtime.

Parameter Types

Parameters in Jahro commands support various types, including primitives (int, float, bool, etc.), strings, Unity's Vector2, Vector3, Vector4, and Quaternion, and more. This allows your commands to work with a diverse set of data, providing flexible control over your game.

Method Overloading

Jahro supports method overloading, meaning you can have multiple commands with the same name but different parameter lists. When you execute a command, Jahro will automatically map the inputs to the appropriate overload, giving you even more control and adaptability in your commands.

Remember, to use parameters in commands, simply separate them by spaces in Text Mode. For instance, commandname param1 param2 param3 executes 'commandname' with three parameters. In Visual Mode, you'll have input fields to fill in the parameters.