A_Look and viewing distance.

Status
Not open for further replies.

Lat'

Absolute territory where
Kart Krew™️
So I was wondering, how can we set A_Look to work properly?
I mean , my ennemy is a bomb and if it explodes when the player is at 30000 meters from it, it will be useless.

Code:
STATE S_WaitingBomb2
SPRITENAME = PNTY
SPRITEFRAME = A
DURATION = 5
NEXT = S_WaitingBomb1
ACTION A_Look
VAR1 = 1
VAR2 = 0

even by setting VAR1 to 1, it explodes when I'm far from it!
What should I set? The explosion range is the same of a Bomb Ring tough.
 
Thanks it works!
But why isn't A_RingExplode damaging players? Or is there any other action spawn an explosion and damages the player?
 
Yes, it even spawns a very big explosion but I am not damaged, even by jumping on my ennemy which explode when you manually kill it.

EDIT:
712031srb20017.gif
 
Last edited:
I believe A_Look set the player to it's target... and I don't think an actor using A_RingExplode can damage their target. If you can set the player to be the tracer instead it should work though. I don't think that there is an equivalent function to A_Look for tracers though, so you may need to create one with lua.
 
This is not like if I was good at Lua :|
It is say at the wiki that any object with MF_Shootable on them can be damaged by this action tough.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top