Advertisement
Guest User

Untitled

a guest
Sep 9th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement