SHARE
TWEET

Untitled

a guest Sep 9th, 2016 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void CCharacter::OnFlowgraphActivation(EntityId entityId, IFlowNode::SActivationInfo *pActInfo, const class CFlowGameEntityNode *pNode)
  2. {
  3.     if (auto *pCharacter = static_cast<CCharacter *>(QueryExtension(entityId)))
  4.     {
  5.         if (IsPortActive(pActInfo, eInputPort_TurnOn))
  6.         {
  7.             pCharacter->GetEntity()->Hide(false);
  8.  
  9.         }
  10.         else if (IsPortActive(pActInfo, eInputPort_TurnOff))
  11.         {
  12.             pCharacter->GetEntity()->Hide(true);
  13.         }
  14.         else if (IsPortActive(pActInfo, eInputPort_GetState))
  15.         {
  16.             pCharacter->OutputAllFG();
  17.         }
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top