Jump to content

Recommended Posts

@Veteran66, try this :

 

local ExplodeThis = Unit.getByName('myUnit'):getPoint()
trigger.action.explosion(ExplodeThis, 200) 

 

Just re-read your post.... You can adjust the explosion power to adjust amount of damage... What exactly are you trying to go for?

The error you encounter seems to be you have not put the correct unitname into the script.  

Link to post
Share on other sites

thy for your answers.

I make a Mission "attack airfield" after this attack there will be a second attack Mission.

so i need some destroy Static Airplanes around the Airfield.

 

with the Actions "Unit Explosion" all Static Plane have the same damage (look not realistic)

so my idea a explosion on the side of the Object. with the script i can out different coordinades so i get (i hope so) different damages on my static Planes.

but this script work not for Static Objeckts

 

-----------------------------------------

 

local pos = Unit.getByName('myUnit'):getPosition().p
pos.x = pos.x + 20
pos.y = pos.y + 3
pos.z = pos.z + 20
trigger.action.explosion(pos, 200)

-------------------------------------------

 

i try "StaticObject.getByName" too

 

 

(sorry for my bad english)

 

First Mission:

https://www.digitalcombatsimulator.com/en/files/1969649/

 

here a Pictures from the first attack:

 

Screen_201224_085410.png


Edited by Veteran66
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...