See Rebel Ops, Spira: Besaid, etc.THEWULFMAN wrote:I think its time to prove the all mighty power of lua.
See documentation, FAQ, and GT community.THEWULFMAN wrote:And make it easy for people to use it.
Moderator: Moderators

See Rebel Ops, Spira: Besaid, etc.THEWULFMAN wrote:I think its time to prove the all mighty power of lua.
See documentation, FAQ, and GT community.THEWULFMAN wrote:And make it easy for people to use it.
Fiodis wrote:See Rebel Ops, Spira: Besaid, etc.THEWULFMAN wrote:I think its time to prove the all mighty power of lua.See documentation, FAQ, and GT community.THEWULFMAN wrote:And make it easy for people to use it.

Fixed.THEWULFMAN wrote:We can make it easier for people who are not: Mav, Zerted, D.U.C.K. or anyone who is crazy good with luas.
http://www.xfire.com/video/3bcdb3/THEWULFMAN wrote:How is dropable weapons done? Could it be done:quotes: better? I dont think anyone other than Mav has done droppable weapons.
Code: Select all
OnObjectDamage(
function(object, damager)
if damager == nil then return end
if GetCharacterTeam(damager) == DEF then
if GetObjectLastHitWeaponClass(object) == "com_weap_inf_force_choke" then
local unit = GetCharacterUnit(damager)
if unit == nil then return end
SetProperty(unit, "CurHealth", GetObjectHealth(unit) + 1)
end
end
end
)
OnObjectDamage(
function(object, damager)
if damager == nil then return end
if GetCharacterTeam(damager) == ATT then
if GetObjectLastHitWeaponClass(object) == "com_weap_inf_force_choke" then
local unit = GetCharacterUnit(damager)
if unit == nil then return end
SetProperty(unit, "CurHealth", GetObjectHealth(unit) + 1)
end
end
end
)


