Quantcast
Channel: ZDoom
Viewing all articles
Browse latest Browse all 3391

Scripting • LOS-base actor not executing special on "Death"

$
0
0
I'm making a series of actors for my levels. The basic feature of them is they stand in place and vanish if you look at them. I want things to happen when they do. I assumed that by making A_JumpIfInTargetLOS go to a "Death" state, it would execute any special I assign to the actors as if they were monsters I killed, however this doesn't appear to be the case.

Code:

Actor CreepyGhost1 900{+ISMONSTER+LOOKALLAROUNDRENDERSTYLE TRANSLUCENTALPHA 0.50States{Spawn:GHST A 0 A_JumpIfInTargetLOS("Death", 100, 0, 400)GHST A 5 A_LookLoopDeath:TNT1 A -1 A_NoBlockingStop}}


It certainly vanishes if I look directly at it, but by trying to assign it a variety of specials, none of them execute when it dies. What am I doing wrong?

Statistics: Posted by Doominer441 — Wed Mar 06, 2024 6:32 pm



Viewing all articles
Browse latest Browse all 3391

Trending Articles