Locutus's python documentation down :(

naf4ever

Dread Lord
Joined
Feb 8, 2003
Messages
405
Location
Southeast Washington State
Im assuming he's just updating it is all. I hope so cause im hopeless in python without it :(

In the meantime since i cant use it im trying to figure which command i should use to check to see which if the unit is the attacker or defender in onCombatResult . Anyone know?

Thanks.

-Naf
 
naf4ever said:
In the meantime since i cant use it im trying to figure which command i should use to check to see which if the unit is the attacker or defender in onCombatResult . Anyone know?

Thanks.

-Naf

I don't think there is a direct way to do this. Depending on what you want to achieve, you could use the onCombatCalc or onCombatLogHit event (the latter one can be combined with the condition
Code:
if (cdAttacker.iCurrHitPoints <= 0)
to do something whenever the attacker dies.

If that doesn't meet your needs, you can create a new event in the SDK. I don't think you can modify existing events (and if you could, I'd rather not do it for compatibility reasons), but it would be rather straightforward to do (look at Unit Statistics for an example, there I implemented two custom events).
 
Nobody is perfect :D.
 
Back
Top Bottom