Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///@description Print(string, value)
- /// @function Print
- /// @param string
- /// @param value
- // Prints, same way as show_debug_message, but with write options
- var argCount = argument_count;
- switch (argCount){
- case 0:
- show_debug_message("No value passed to print.")
- break;
- case 1:
- var _value = argument[0];
- if(_value == true) _value = "True"; else if(_value == false) _value = "False";
- show_debug_message(_value);
- break;
- case 2:
- var _string = argument[0];
- var _value = argument[1];
- if(_value == true) _value = "True"; else if(_value == false) _value = "False";
- show_debug_message(_string + string(_value));
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement