Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CCharacter::OnFlowgraphActivation(EntityId entityId, IFlowNode::SActivationInfo *pActInfo, const class CFlowGameEntityNode *pNode)
- {
- if (auto *pCharacter = static_cast<CCharacter *>(QueryExtension(entityId)))
- {
- if (IsPortActive(pActInfo, eInputPort_TurnOn))
- {
- pCharacter->GetEntity()->Hide(false);
- }
- else if (IsPortActive(pActInfo, eInputPort_TurnOff))
- {
- pCharacter->GetEntity()->Hide(true);
- }
- else if (IsPortActive(pActInfo, eInputPort_GetState))
- {
- pCharacter->OutputAllFG();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement