| 07-23-2007, 04:07 AM | #1 |
ive been studying attached variables in CS_Cache, but still didnt get my problem solved, so ill ask it directly to the master JASS:local unit u = GetTriggerUnit() call AttachObject( GetTriggerUnit(), "caster", gg_trg_AWD ) or trigger AWD is attached to GetTriggerUnit()? JASS:local unit e = GetAttachedUnit(GetTriggerUnit(), "caster") why cant i use this? JASS:local unit u = GetTriggerUnit() call AttachObject(u, "caster", gg_trg_AWD) can anyone post a trigger that uses attached variables correctly? i need an answer for this to make a spell that blocks damage dealt to the buffed unit for Tables can anyone post a trigger that a table is used, i need a short trigger that clarifies the uses of tables? they said tables are better than attached variable, so i think i will need it... |
| 07-25-2007, 01:09 PM | #2 | |
Quote:
... I would say, don't bother learning attacheable vars. Their only use should now be attaching a single integer, which is a pointer to an struct... |
| 08-28-2007, 12:09 PM | #3 | |
Quote:
so what do i use to pass variables to other functions? |
| 08-28-2007, 07:56 PM | #4 |
arguments? |
| 09-01-2007, 04:40 AM | #5 |
are arguments already in cs_cache? |
| 09-01-2007, 01:09 PM | #6 |
they were in Jass since the beginning? |
| 09-01-2007, 10:50 PM | #7 |
ahh...thanks |
