Checking if player is Infamous
Discussion in 'Hurtworld Development' started by Vinerra, Feb 6, 2016.
-
Wulf Community Admin
A hook wouldn't be needed, those are more of "events" whereas checking if something is set on something would just be a matter of finding the location where that information is stored in the game.
-
To get the EntityStats of a session useCode:EntityStats stats = session.WorldPlayerEntity.GetComponent<EntityStats>();
Code:float infamy = stats.GetFluidEffect(EEntityFluidEffectType.Infamy).GetValue();
For example:
Code:if(infamy > 0) Puts("Infamous!"); else Puts("NOT Infamous!");
Code:EntityStats stats = session.WorldPlayerEntity.GetComponent<EntityStats>(); float infamy = stats.GetFluidEffect(EEntityFluidEffectType.Infamy).GetValue(); if(infamy > 0) Puts("Infamous!"); else Puts("NOT Infamous!");
Last edited by a moderator: Feb 7, 2016 -
@Noviets damn, you sure know your stuff