Author Topic: Multiple slot shooting  (Read 458 times)

Hello, I was working on my B24 bomber and I want one person to shoot and another person to drop the bombs. I was using the shootonclick to get this to work but I can't. I have support_shootonclick and one called support_shootonclickB. B uses fshootonclick instead of just shootonclick. It looks like this.

Code: [Select]
numMountPoints = 2;
   mountThread[0] = "sit";
   mountThread[1] = "sit";


Fshootonclick=1;
Fshootonclick_Hold=1;
Fshootonclick_ShootDelay=100;
Fshootonclick_ReShootDelay=100;
Fshootonclick_ProjectileCount=2;
Fshootonclick_RequiredSlot=0;
//Fshootonclick_Sound=gunshot1sound;

Fshootonclick_Projectile[0]=gunProjectile;
Fshootonclick_Position[0]="0 0.5 -1";
Fshootonclick_Velocity[0]="200 0 0";
Fshootonclick_Scale[0]="1 1 1";
Fshootonclick_Projectile[1]=gunProjectile;
Fshootonclick_Position[1]="0 -0.5 -1";
Fshootonclick_Velocity[1]="200 0 0";
Fshootonclick_Scale[1]="1 1 1";

shootonclick=2;
shootonclick_Hold=1;
shootonclick_ShootDelay=100;
shootonclick_ReShootDelay=100;
shootonclick_ProjectileCount=1;
shootonclick_RequiredSlot=1;
//shootonclick_Sound=gunshot1sound;

shootonclick_Projectile[2]=gunProjectile;
shootonclick_Position[2]="0 0.5 -1";
shootonclick_Velocity[2]="200 0 0";
shootonclick_Scale[2]="1 1 1";
Slot one shoots buts slot two does not it just gives console errors every time I click.

ShootOnClick is for the driver only.

We'd need to see what "Support_ShootOnClickB" does in order to fix it.

ShootOnClick is for the driver only.

We'd need to see what "Support_ShootOnClickB" does in order to fix it.
ShootonclickB is just shootonclick not Fshootonclick. Everything in the script is the same except for SOC is replaced with FSOC and shootonclick is replace with Fshootonclick.

Have you actually changed it so the player in slot 2 (not the driver) can use it?

Have you actually changed it so the player in slot 2 (not the driver) can use it?
The part that says Requiredslot=1; is not requiredslot=0;