destrodevianne Posted December 15, 2023 Posted December 15, 2023 Hi friends, I have a question I am trying to access the CreatureID variable of the Pawn class that inherits from the Actor class to check if it is the one that corresponds to my target inside a for loop. I am trying to apply an effect on the target as in the monokini interface, but in the Interlude client. function ApplyEffectTarget (bool isClear, optional private UserInfo info ) { local Pawn a_Pawn; local Vector V; local Actor PlayerActor; if(! GetTargetInfo(info)) { return; } else { V = PlayerActor.Location; } if ( decalEmitter != None ) { decalEmitter = None; } if ( isClear ) { return; } foreach PlayerActor.CollidingActors(Class'Pawn',a_Pawn,100,V) { if (m_TargetID == a_Pawn.CreatureID && m_TargetID > 0) { V.X = 0.0; V.Y = 0.0; V.Z = a_Pawn.CollisionHeight + 7; decalEmitter = a_Pawn.Spawn(TargetEmitterClass, a_Pawn); } else { } } } I get this error when compiling Can someone help me ? thanks. Quote
cherolaine Posted December 16, 2023 Posted December 16, 2023 you need to have real time acess to the actor to have acess to the pawn. and this a code from L2Royale, not monokini xd Quote
destrodevianne Posted December 16, 2023 Author Posted December 16, 2023 thanks for your help now I understand better how interlude works. monokini in high five like l2royale https://drive.google.com/file/d/1mvotZ5v_bxZQpCEydP5Re61mNbeGue8B/view 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.