Terminator Lockon Crosshair Error
Posted: Sun Apr 27, 2014 3:18 pm
Hello, I'm trying to make an effect in my GvH addon pack where a crosshair actor follows a ghoul player (except creeper) around, and the crosshair is only visible to the Terminator class. However, while the crosshair is capable of spawning (I've used summon to spawn it), it doesn't spawn in the script. Anyone know what's going on? Thanks.
Code: Select all
ACTOR T800Crosshair
{
+CLIENTSIDEONLY
VisibleToPlayerClass Terminator
States
{
Spawn:
TRMX A 1 Bright
loop
}
}
Code: Select all
script 133 ENTER
{
if(PlayerTeam() == 0 || CheckInventory("CreeperWeapon") == 1)
{
terminate;
}
int x = GetActorX(0)+10;
int y = GetActorY(0)+10;
int Z = GetActorZ(0)+30;
int p = PlayerNumber();
int tid = 1000+p;
SpawnForced("T800Crosshair", x, y, z, tid, 0);
while (PlayerInGame(p))
{
x = GetActorX(0)+10;
y = GetActorY(0)+10;
Z = GetActorZ(0)+30;
SetActorPosition(tid, x, y, z, 0);
delay(1);
}
Thing_Remove(tid);
}
script 134 RESPAWN
{
if(PlayerTeam() == 0 || CheckInventory("CreeperWeapon") == 1)
{
terminate;
}
int x = GetActorX(0)+10;
int y = GetActorY(0)+10;
int Z = GetActorZ(0)+30;
int p = PlayerNumber();
int tid = 1000+p;
SpawnForced("T800Crosshair", x, y, z, tid, 0);
while (PlayerInGame(p))
{
x = GetActorX(0)+10;
y = GetActorY(0)+10;
Z = GetActorZ(0)+30;
SetActorPosition(tid, x, y, z, 0);
delay(1);
}
Thing_Remove(tid);
}