Jump to content

Recommended Posts

Posted

Hi all,

 

Forgive me if this is a topic that has been covered before. I did several searches and didn't quite uncover it.

 

Is there a way to use a Trigger based on whether or not a unit is being lased? Icing on the cake to say lased by a particular unit and/or with a particular code, but just "UNIT LASED" would do.

 

PREFERABLY built in without scripting, but I guess I need to learn scripts/MIST etc.. one of these days. Since the game can obviously determine when a unit is being lased by a CLIENT or JTAC, there must be logic there, but I haven't been able to uncover whether it can be used simply in a Trigger.

 

Thanks!

Posted
Can't even do it with the scripting engine. It is something we have wanted for a while.

 

Somewhat... you can use the Spot:getPosition() function and then compare that to say a radius of a unit, and if it's within 1 meter of the center of the unit you could "assume" it's lased, but technically you could be lasing the dirt between its wheels and it would still return true.

 

Given the engine has sensors for LWS etc, I assume ED could certainly implement a proper trigger if they wanted, and either have it for all units, or only trigger for units with a LWR sensor.

Posted
Somewhat... you can use the Spot:getPosition() function and then compare that to say a radius of a unit, and if it's within 1 meter of the center of the unit you could "assume" it's lased, but technically you could be lasing the dirt between its wheels and it would still return true.

 

Given the engine has sensors for LWS etc, I assume ED could certainly implement a proper trigger if they wanted, and either have it for all units, or only trigger for units with a LWR sensor.

 

That is only for lasers you create via the Spot class. You can't get lasers any other way. It doesn't apply to lasers players, JTACs, or other entities create via avionics.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted
That is only for lasers you create via the Spot class. You can't get lasers any other way. It doesn't apply to lasers players, JTACs, or other entities create via avionics.

 

 

Bugger, I thought it was returned in search objects but you're right, it's not obtainable unless created by a script, too bad.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...