I tried attaching two effects to a unit via ODF.
The ODF:
Hidden/Spoiler:
Code: Select all
Message Severity: 2
.\Memory\RedMemory.cpp(634)
Allocating 448 bytes attempt failed - no free blocks left in Heap 5 (Runtime)
Message Severity: 3
.\Memory\RedMemory.cpp(538)
Allocating 448 bytes failed - no free blocks left in Heap 5 (Runtime)Code: Select all
forcelifesteal = OnObjectKill (
function (object, killer)
if GetObjectLastHitWeaponClass(object) == "com_weap_inf_force_lightning" then
SetProperty(killer, "CurHealth", 1e+40)
end
end
)
Being a novice scripter, I'm certain something's wrong, but what?
Also, could I use OnEntityDamage if I wanted to create a "Force Drain" type thing?



