Guest User

Untitled

a guest
Sep 6th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class SeqAction_GFx_CustomInvoke_AS3 extends SequenceAction
  2.     dependson(GFxMoviePlayer);
  3.  
  4. var GFxMoviePlayer MoviePlayer;
  5.  
  6. var() string FunctionPath;
  7. var() string InvokeFunction;
  8. var() array<ASValue> args;
  9.  
  10. event Activated()
  11. {
  12.     CallASFunction();
  13. }
  14. function CallASFunction()
  15. {
  16.    `log("###### THE CALL IS MADE IN CALLASFUNCTION #####"$FunctionPath $InvokeFunction $MoviePlayer);
  17.    // args.Length = 2;
  18.     MoviePlayer.GetVariableObject(FunctionPath).Invoke(InvokeFunction, args);
  19. }
  20.  
  21. event bool IsValidLevelSequenceObject() { return true; }
  22.  
  23. defaultproperties
  24. {
  25.     ObjName="AS3 Invoke"
  26.     ObjCategory="GFx UI"
  27.     VariableLinks(0)=(ExpectedType=class'SeqVar_Object',LinkDesc="Movie Player",bWriteable=false,PropertyName=MoviePlayer)
  28. }
  29.  
  30.  
  31. //**************LOG
  32. ...
  33. [0008.66] ScriptLog: ###### THE CALL IS MADE IN CALLASFUNCTION #####"_root""startGameRotator"GFX_Games_0
  34. [0008.66] ScriptWarning: Accessed None
  35.     SeqAction_GFx_CustomInvoke_AS3 U101_Map_Lvl0_Master.TheWorld:PersistentLevel.Main_Sequence.SeqAction_GFx_CustomInvoke_AS3_0
  36.     Function unnamed101.SeqAction_GFx_CustomInvoke_AS3:CallASFunction:008A
  37. ...
Add Comment
Please, Sign In to add comment