forked from Mirrors/openclonk
add callback to object when it gets controlled by tele glove
parent
c66833e2db
commit
e5e5665294
|
@ -197,10 +197,11 @@ public func ControlUseHolding(object clonk, ix, iy)
|
|||
|
||||
public func GainedTargetObject(object target)
|
||||
{
|
||||
if(!GetEffect("TeleGloveWeight", target))
|
||||
if (!GetEffect("TeleGloveWeight", target))
|
||||
{
|
||||
//Who holds the object? For killtracing
|
||||
target->SetController(Contained()->GetController());
|
||||
target->~OnTeleGloveControl(this);
|
||||
AddEffect("TeleGloveWeight", target, 1, 0, target);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue