for _, drop in ipairs(drops_output) do
if _ItemDropLogic:CheckDropOwner(dropComponent.OwnType, dropComponent.OwnId, dropComponent.CreateTim
local drop_pos = drop.Entity.TransformComponent.WorldPosition
local drop_pos = calculateDistance(player_pos, drop_pos)
table.insert(dropDistanceTable, {drop = drop, distance = drop_pos})
이게 맞다고?ㅋㅋ
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+156 | 10-20 | 22554 | |
| 61851 | 19:17 | 15 | ||
| 61850 | 08:57 | 91 | ||
| 61849 | 01:00 | 153 | ||
| 61848 | 02-08 | 277 | ||
| 61847 | 02-08 | 264 | ||
| 61846 | 02-08 | 217 | ||
| 61845 | 02-08 | 290 | ||
| 61844 | 02-08 | 287 | ||
| 61843 | 02-07 | 368 | ||
| 61842 | 02-06 | 782 | ||
| 61841 | 02-03 | 1014 | ||
| 61840 | 02-02 | 1569 | ||
| 61839 | 02-01 | 1504 | ||
| 61838 | 02-01 | 1397 | ||
| 61837 | 02-01 | 1292 | ||
| 61836 | 01-29 | 1727 | ||
| 61835 | 01-29 | 1748 | ||
| 61834 | 01-28 | 2162 | ||
| 61833 | 01-28 | 2126 |
댓글2
이 코드는 아이템이 떨어졌을 때 그 위치를 확인하고, 그 위치와 플레이어의 위치 사이의 거리를 계산하여 그 정보를 테이블에 추가하는 부분입니다.
그렇다면 아래의 구문은 어디에 종속시켜야하는겁니까?,
if _ItemDropLogic:CheckDropOwner(dropComponent.OwnType, dropComponent.OwnId,