Forum

> > Stranded II > Scripts > Enemy's projectiles directed at friendly.
Forums overviewStranded II overview Scripts overviewLog in to reply

English Enemy's projectiles directed at friendly.

2 replies
To the start Previous 1 Next To the start

old Enemy's projectiles directed at friendly.

pupp3tStudios
User Off Offline

Quote
Can it be possible for this sort of script? You are taking damage from an enemy, as normal, yet it can shoot out projectiles at a certain unit, in this case your friendly unit. I know there are 6 modes for projectiles, and the first one seemed interesting. It says that the projectile will be directed to a specific object, or maybe a unit.

old Re: Enemy's projectiles directed at friendly.

Mc Leaf
Super User Off Offline

Quote
Yes.

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


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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview