- Joined
- Mar 27, 2008
- Messages
- 8,035
I wanna write this simple custom function inside the GUI Trigger, is it possible ?
When I write that function in the map header, the map does not compile any error.
But when I write that function inside GUI Trigger, it compiles errors.
JASS:
function Test takes nothing returns nothing
local unit u = GetTriggerUnit()
call KillUnit(u)
set u = null
endfunction
When I write that function in the map header, the map does not compile any error.
But when I write that function inside GUI Trigger, it compiles errors.
-
Actions
- Custom script: function Test takes nothing returns nothing
- Custom script: local unit u = GetTriggerUnit()
- Custom script: call KillUnit(u)
- Custom script: set u = null
- Custom script: endfunction