using { /Fortnite.com/Devices, /Fortnite.com/Characters, /Fortnite.com/Items }
InvisibilityRemote := class(creative_device):
var invisiblePlayers : [player]bool = map[]
# アイテム使用イベントを購読
OnBegin<override>()<suspends> : void =
ItemUsedEvent.Subscribe(OnItemUsed)
OnItemUsed(p:player, item:item) : void =
# 特定のアイテムだけをリモコンにする(例:ピストル)
if (item.GetWeaponName() = "Pistol"):
if (invisiblePlayers[p]?false):
p.Show()
invisiblePlayers[p] = false
else:
p.Hide()
invisiblePlayers[p] = true
このページはWepageで作成されています。今すぐ無料でホームページを作ってみませんか?
Wepageは、HTMLの知識がなくても、誰でも簡単にホームページを作成できます。詳しくはこちら