AArdemCharacter
inherits ACharacter
The base player-controlled character. Inherit to override core survival logic, damage handling, and movement.
Properties
HealthCurrent health points (0.0 – 100.0).
MaxHealthMaximum health capacity. Modify to apply perks or buffs.
bIsAliveTrue while the character has Health > 0.
InventoryComponentAttached inventory. Use to query and modify items.
SurvivalComponentTracks hunger, thirst, body temperature, and fatigue.
WeaponComponentHandles currently equipped weapon and ballistics.
DisplayNamePlayer display name shown in the world and HUD.
Methods
float GetHealth() constReturns current health value.
void SetHealth(float NewHealth)Directly set health. Clamps to [0, MaxHealth]. Does not fire damage events.
void DealDamage(float Amount, AArdemCharacter* Instigator)Apply damage from another actor. Fires OnDamageReceived and respects armor.
void Heal(float Amount)Restore health up to MaxHealth.
bool GiveItem(const FString& ItemSlug, int32 Quantity = 1)Add items to inventory by slug. Returns false if inventory is full.
void SendChatMessage(const FString& Message)Display a server-side chat message visible only to this player.
bool Teleport(FVector Location, FRotator Rotation)Instantly move the player to a world location.
void Kill()Force-kill the character, triggering the full death sequence.
Overrides
virtual void OnDamageReceived(float Amount, AArdemCharacter* Instigator)Called whenever this character takes damage. Override to intercept or modify incoming damage.
virtual void OnDeath()Called when Health reaches 0. Override to add custom death logic or drop items.
virtual void OnRespawn(FVector SpawnLocation)Called immediately before the character respawns. Override to restore gear or stats.
virtual bool CanPickUpItem(UArdemItemBase* Item) constReturn false to prevent this player from picking up a specific item.
Events & Delegates
FOnPlayerJoin OnPlayerJoinDelegate fired when this character fully enters the world. Bind in subsystem Initialize().
FOnPlayerLeave OnPlayerLeaveDelegate fired when this player disconnects or leaves the session.