Actor action function
A_fua_Unstick ()
A_fua_Unstick
Availability
ZandroX only. Does not exist in Zandronum 3.2.
Usage
Lets a stuck caller go, and returns whether it was stuck. It stays where it is, at rest; a
projectile without +NOGRAVITY then falls, and one given a velocity flies again and can stick again on its
next impact. Its host no longer counts it in StuckCount.
Call it before an explosion that should not follow the host as it goes on, or to launch the caller away from what it stuck to. In a netgame the server decides it, and each client's copy is put where the server's was let go.
Examples
A burr that clings for two seconds, then springs back the way it came:
ACTOR Burr
{
Radius 4
Height 4
Speed 20
Projectile
+STICKY
States
{
Spawn:
BAL1 A 1
Loop
Stick:
BAL1 A 70
BAL1 A 0 A_fua_Unstick
BAL1 A 0 A_ChangeVelocity(-20, 0, 0, CVF_RELATIVE | CVF_REPLACE)
Goto Spawn
}
}