4 ChimeraCharacter m_player;
9 SCR_MapGadgetComponent mapGadgetComponent;
10 ref array<SCR_SpawnPoint> a_SpawnPoints = {};
13 override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
18 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
20 m_player = ChimeraCharacter.Cast(pUserEntity);
28 IEntity mapGadget = gadgetManager.GetGadgetByType(EGadgetType.MAP);
32 gadgetManager.SetGadgetMode(mapGadget, EGadgetMode.IN_HAND);
45 SCR_FastTravelComponent.ToggleMapDestinationSelection(
true);
54 m_NewPos = a_SpawnPoints.GetRandomElement();
55 vector positionOfSpawn = m_NewPos.GetOrigin();
68 void fnMapClick(vector neco)
75 override bool CanBePerformedScript(IEntity user)
78 return (a_SpawnPoints.Count() > 1);
88 override bool CanBeShownScript(IEntity user)