| 10-02-2006, 01:11 PM | #1 |
I tried assigning a local variable in GUI with the following Trigger: but it gives me an error, I got it from a tutorial on this site if one wants to know. |
| 10-02-2006, 01:19 PM | #2 |
local must be the first line in the function, you are doing it after a call to TriggerExecute |
| 10-02-2006, 02:04 PM | #3 |
thnx, but now I tried using it in a different trigger, with refering to the local first again, but that doesn't seem to work. |
| 10-02-2006, 02:09 PM | #4 |
you are not giving that local any value |
| 10-02-2006, 02:13 PM | #5 |
how would I value the casting unit from the other trigger? |
| 10-02-2006, 02:54 PM | #6 |
thats what you use globals for :p you could always attach the unit to gamecache and take it from there |
| 10-02-2006, 02:57 PM | #7 |
Set like: Trigger: ![]() Custom script: local unit udg_SE_Castunit
![]() set udg_SE_CastUnit = MyUnitOr easier Trigger: Custom script: local unit udg_SE_Castunit = MyUnit |
