Roku
New Member
- Reaction score
- 3
I just downloaded the PUI system by Cohadar, and it looks really good, the only thing is i dont really know how to use it. I want to attach struct to a unit, so i can use the properties of a given unit in another function. Would help alot if you guys could show me some examples of how to do this. So this is basicly what i would want:
JASS:
private function Act takes nothing returns nothing
local fb c = fb.create()
local unit caster = GetTriggerUnit()
set c.c = caster
endfunction
private function Buffapply takes nothing returns nothing
local fb c = fb.create()
local unit u = c.c
call UnitDamageTarget(u, GetSpellTargetUnit(), blablabla)
endfunction