Jump to content

Recommended Posts

Posted

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

 

Capturadepantalla2023-12-15162346.thumb.png.d8c84f8d2d3bed6711336d33708620ab.png

 

 

Can someone help me ? 

 

thanks.

 

 

 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock