Checking if a pawn is on the wall

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

HOB

King of the Jungle
Mar 14, 2000
22
0
0
41
CT
www.planetunreal.com
Is there a way to check if a certain pawn is on the wall?

Say I have a scriptedpawn with phys_spider and I want to check when its crawling on the wall or ceiling to go to another state, how would I go about doing this?
 

EasyRaider

Crazy coder
Sep 21, 2001
74
0
0
43
Norway
Hmm, not sure about this. I think you either need to find the surface normal, or use the pawn's rotation. Then check if this is within a certain angle. Maybe something like this:

local Vector X, Y, Z;

GetAxes (Rotation, X, Y, Z);
if ( (X Dot vect(0,0,1)) < 0.5 )
// then on wall or ceiling