This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I'm trying to add events to triggers i've made, and i can add dialog events, but not this unitproperty change one. Any idea why it won't work?
void lib7A84AF8F_gf_Addunittoevent (trigger lp_trigger, unit lp_unit, int lp_vital) { // Implementation TriggerAddEventUnitProperty (lp_trigger, lp_unit, lp_vital); }
Yes it's gui with custom script actions, hence the parameter naming. and the vital parameter is the unit property preset.
Edit: Oh this gives me the error "Parameter type does not match the function definition" and the function definition is:
native void TriggerAddEventUnitProperty (trigger t, unitref u, int prop);
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
i assume that the unit is the problem. unitref and unit are not the same. check out events with units and what kind of units can be selected there
Interesting, ty i had to use UnitRefFromUnit (unit u) for it.
I'm trying to add events to triggers i've made, and i can add dialog events, but not this unitproperty change one. Any idea why it won't work?
Yes it's gui with custom script actions, hence the parameter naming. and the vital parameter is the unit property preset.
Edit: Oh this gives me the error "Parameter type does not match the function definition" and the function definition is:
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
i assume that the unit is the problem. unitref and unit are not the same. check out events with units and what kind of units can be selected there
Interesting, ty i had to use UnitRefFromUnit (unit u) for it.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)