전략게시판

전략게시판 [스튜디오]
각종 이벤트 콜백마다 탄창 한 묶음씩 지급하는 스크립트
2020.04.12 22:59 조회 : 2019
Lv. 32익스트림버니합 CosyClimbing 작성자 게시물 더보기
function Game.Rule:OnGetWeapon(player, weaponid, weapon) -- 무기를 획득할 때 탄창 한 묶음 지급
if weapon ~= nil then weapon:AddClip1(1) end
end

function Game.Rule:OnReload(player, weapon, time) -- 장전을 시작할 때 탄창 한 묶음 지급
if weapon ~= nil then weapon:AddClip1(1) end
end

function Game.Rule:OnReloadFinished(player, weapon) -- 장전이 끝날 때 탄창 한 묶음 지급
if weapon ~= nil then weapon:AddClip1(1) end
end

function Game.Rule:PostFireWeapon(player, weapon, time) -- 발사 시 탄창 한 묶음 지급
if weapon ~= nil then weapon:AddClip1(1) end
end

-- 인벤토리에 무기를 소유하지 않았거나 스크립트로 소환한 무기가 아니면 함수가 작동되지 않을 수 있음 --
추천 : 2
댓글을 남기시려면 로그인 해주세요
댓글 : 1
  • 저 때문에 올려주셨군요 ㅠㅠ 정말 감사합니다 잘쓰겠습니다 Lv. 130명진구 2020.04.13