I'm trying to add an action special to a projectile, which is "Thing_SetTranslation" I want to use it like so it gets the colors from the actor that shoots it.
Here is the code for it: (this is the original plasmaball, just replaced the original, and added the translation line.)
Code: Select all
ACTOR PlasmaBall1 replaces PlasmaBall
{
Radius 13
Height 8
Speed 25
Damage 5
Projectile
+RANDOMIZE
RenderStyle Add
Alpha 0.75
SeeSound "weapons/plasmaf"
DeathSound "weapons/plasmax"
Obituary "$OB_MPPLASMARIFLE"
States
{
Spawn:
PLSS A 0 Thing_SetTranslation(0,-1);
PLSS AB 6 Bright
Loop
Death:
PLSE ABCDE 4 Bright
Stop
}
}
I've also tried to make it PLSS AB and also PLSS A 1 but i got the same error.
I may be dumb, but as far as i know, i can put these kind of commands in decorate, no?
Any ideas how i could get around this?