What I'm trying to do is make a statue actor that does an archvile attack when you step into it's view. However I can't get it to not constantly turn towards the player once it's alerted. I want to get it to where it only ever faces a single direction so the player wouldn't be attacked if they run behind it. Any suggestions? Is this even possible to do?
Here's what I have so far:
ACTOR Sentry 1963
{
Radius 20
Height 56
MaxTargetRange 896
+FLOORCLIP
+NOTARGET
+MISSILEMORE
+MISSILEEVENMORE
+SOLID
Obituary "A Sentry spotted %o"
States
{
Spawn:
SENT A 1 A_Look
Loop
See:
SENT A 1 A_Chase (0,"Missile",CHF_DONTMOVE|CHF_DONTTURN)
Loop
Missile:
SENT A 8 A_VileTarget
SENT A 48
SENT A 8 A_VileAttack
Goto See
}
}
Question
asd1994
What I'm trying to do is make a statue actor that does an archvile attack when you step into it's view. However I can't get it to not constantly turn towards the player once it's alerted. I want to get it to where it only ever faces a single direction so the player wouldn't be attacked if they run behind it. Any suggestions? Is this even possible to do?
Here's what I have so far:
ACTOR Sentry 1963
{
Radius 20
Height 56
MaxTargetRange 896
+FLOORCLIP
+NOTARGET
+MISSILEMORE
+MISSILEEVENMORE
+SOLID
Obituary "A Sentry spotted %o"
States
{
Spawn:
SENT A 1 A_Look
Loop
See:
SENT A 1 A_Chase (0,"Missile",CHF_DONTMOVE|CHF_DONTTURN)
Loop
Missile:
SENT A 8 A_VileTarget
SENT A 48
SENT A 8 A_VileAttack
Goto See
}
}
Share this post
Link to post
4 answers to this question
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.