This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
as the title says i need to detect if a builder helps another builder building a building? i found no event for it so i ask here
@HellGateSc2: Go
What is that for ? the multiple building research in campaign ? If so then you will have to look for those effect, behavior and get events based on them
yea it's based of the multipi build of the campain
i'm making the supcom resurce system so it's for the assist thing. to make it drain mass/energy faster (cost/build time)*builders
hmmm i found a way but now i serch the function to add a event to a trigger trought triggers :/
bump
Quote from HellGateSc2: Gohmmm i found a way but now i serch the function to add a event to a trigger trought triggers :/
You need an event? Possibly add an event if a unit is issued an order, and if that unit is an SCV and the order is to Build. (Or whatever unit it is)
i mean like in wc3:
add (unit dies) event to the trigger (trigger)
and this ingame
add your event to a trigger e.g.
(Triggering Unit) dies
then press strg + F11 to show the map script and search for these lines (or similar)
void gt_Test_Init () { gt_Test = TriggerCreate("gt_Test_Func"); TriggerAddEventUnitDied(gt_Test, UnitRefFromUnit(EventUnit())); }
copy the line:
TriggerAddEventUnitDied(gt_Test, UnitRefFromUnit(EventUnit()));
put it in a custom script and replace gt_Test with your trigger
hey thank you very much will try it asap (now)
it works perfect :D
thx soooo much
as the title says i need to detect if a builder helps another builder building a building?
i found no event for it so i ask here
@HellGateSc2: Go
What is that for ? the multiple building research in campaign ? If so then you will have to look for those effect, behavior and get events based on them
yea it's based of the multipi build of the campain
i'm making the supcom resurce system so it's for the assist thing. to make it drain mass/energy faster (cost/build time)*builders
hmmm i found a way but now i serch the function to add a event to a trigger trought triggers :/
bump
You need an event? Possibly add an event if a unit is issued an order, and if that unit is an SCV and the order is to Build. (Or whatever unit it is)
i mean like in wc3:
add (unit dies) event to the trigger (trigger)
and this ingame
add your event to a trigger e.g.
(Triggering Unit) dies
then press strg + F11 to show the map script and search for these lines (or similar)
void gt_Test_Init () { gt_Test = TriggerCreate("gt_Test_Func"); TriggerAddEventUnitDied(gt_Test, UnitRefFromUnit(EventUnit())); }
copy the line:
TriggerAddEventUnitDied(gt_Test, UnitRefFromUnit(EventUnit()));
put it in a custom script and replace gt_Test with your trigger
hey thank you very much will try it asap (now)
it works perfect :D
thx soooo much