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.

 

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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