Forum
Stranded II Scripts Tower and Arrow damageTower and Arrow damage
4 replies 1
1
{ projectile 53,$fx,$fy,$fz,5,300,50,0,15,0.5625,0; }
1
{ projectile 53,?,?,?,?,?,?,?,15,?,?; }
Quote
Example 1: Defense Tower shoots at only hostile units:
projectile Item Id,x,y,z,mode,range,damage,drag;
In this example the variable $y has 28 added to it...this is the height of the projectile(arrow) off the ground where it appears to come out of the Defense Tower.
Also note: The mode for the defense tower is set to 6. Which you can see the modes in the "more +" below. So it shoots at hostile units...units with the behavior of "raptor". The 350 is the Range that they talk about in mode 6.
The Defense Tower arrow does 15 Damage.
Drag is 59, how far before the arrow loses momentum and falls to the ground.
projectile Item Id,x,y,z,mode,range,damage,drag;
In this example the variable $y has 28 added to it...this is the height of the projectile(arrow) off the ground where it appears to come out of the Defense Tower.
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
on:timer { 		local $x,$y,$z; 		$x=getx("self"); 		$y=gety("self"); 		$z=getz("self"); 		$y+=28; 		projectile 53,$x,$y,$z,6,350,15,59; 	}
Also note: The mode for the defense tower is set to 6. Which you can see the modes in the "more +" below. So it shoots at hostile units...units with the behavior of "raptor". The 350 is the Range that they talk about in mode 6.
The Defense Tower arrow does 15 Damage.
Drag is 59, how far before the arrow loses momentum and falls to the ground.
Quote
Example 2: Native Bowman shoots Fire Arrow at the player
projectile Item Id,x,y,z,mode,speed,damage,drag;
In this example the variable $y has 28 added to it...this is the height of the projectile(arrow) off the ground where it appears to be shot from the bow native.
Also note: The mode for the Native's Arrow is set to 4. Which you can see the modes in the "more +" below. So it shoots at the player. The 70 is the Speed, 10 is the Damage, and 50 is the Drag
}
projectile Item Id,x,y,z,mode,speed,damage,drag;
In this example the variable $y has 28 added to it...this is the height of the projectile(arrow) off the ground where it appears to be shot from the bow native.
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
on:timer { if (lives("self")==1){ 	local $x,$y,$z; 	$x=getx("self"); 	$y=gety("self"); 	$z=getz("self"); 	$y+=28; 	projectile 56,$x,$y,$z,4,70,10,50; }
Also note: The mode for the Native's Arrow is set to 4. Which you can see the modes in the "more +" below. So it shoots at the player. The 70 is the Speed, 10 is the Damage, and 50 is the Drag
}
edited 8×, last 05.04.15 02:40:41 pm
1