전략게시판

전략게시판 [스튜디오]
스크립트01 - 장치 초기화 시 최대체력을 현재체력으로 설정하는 방법
2019.12.15 23:16 조회 : 2126
Lv. 50익스트림트롤 RedSiren 작성자 게시물 더보기


>>>game.lua

function Apply() --접속한 모든 플레이어의 최대체력을 현재 체력으로 맞춘다
if pot == nil then pot = {} end
for i=1, 24 do
pot.i = Game.Player:Create(i)
if pot.i ~= nil then pot.i.maxhealth = pot.i.health end
end
end
추천 : 0
댓글을 남기시려면 로그인 해주세요
댓글 : 0