Forum
Stranded II Scripts Enemy's projectiles directed at friendly.Enemy's projectiles directed at friendly.
2 replies 1
Let me (try to) translate and explain that command description:
Quote
projectile item-type,X,Y,Z,{mode}[,offset][,weapon][,velocity][,damage][,drag]
Creates a projectile of given item-type (ID from definition) at position X,Y,Z and fires it off.
There are 5 modi to choose:
1 - class,ID - projectile flies to a specific object of given class and ID
2 - X,Y,Z - projectile flies to given coordinates
3 - pitch,yaw - projectile flies in specific direction
4 - projectile is heading towards the player
5 - range - projectile flies to nearest unit in given range (except the player)
6 - range - projectile is heading towards next aggressive unit
additional parameters:
offset - translate projectile from point of start (avoid collision between other objects...)
weapon - weapon which values are used for projectile (type of item from definition), type "0" for own values:
velocity - velocity of projectile
damage - damage (factor, multiplied with damage of projectile item)
drag - drag value
Creates a projectile of given item-type (ID from definition) at position X,Y,Z and fires it off.
There are 5 modi to choose:
1 - class,ID - projectile flies to a specific object of given class and ID
2 - X,Y,Z - projectile flies to given coordinates
3 - pitch,yaw - projectile flies in specific direction
4 - projectile is heading towards the player
5 - range - projectile flies to nearest unit in given range (except the player)
6 - range - projectile is heading towards next aggressive unit
additional parameters:
offset - translate projectile from point of start (avoid collision between other objects...)
weapon - weapon which values are used for projectile (type of item from definition), type "0" for own values:
velocity - velocity of projectile
damage - damage (factor, multiplied with damage of projectile item)
drag - drag value
So, the structure is like that (without brackets):
projectile $ammo,$x,$y,$z,{$mode,...}
projectile $ammo,$x,$y,$z,{$mode,...},$weapon
projectile $ammo,$x,$y,$z,{$mode,...},0,$velocity,$damage,$drag
For example
projectile 54,$x,$y,$z,"unit",100,50,59;
fires an arrow with bow (dmg., vel., drag of arrow (54) multiplied with dmg., vel., drag of bow (59)) from coordinates x,y,z, at unit with id 100.
Alright, thank you sir.
1