Profile image

Laser Designator

Dev WNP78  4.1 years ago
14,930 downloads
Version 1 Part

It's a part that allows you to designate targets for missiles to lock on to. It's pretty easy to use.

It has two modes:

Live mode

The target appears when you activate it, follows the "laser" around and disappears when you turn it off. It's the more realistic mode.

Persistent mode

The target is created on whatever object it hits first and stays there until you exit or restart. Less realistic.

Other than that, just point it at the target and activate it!

  • Log in to leave a comment
  • Profile image

    is it possible to make motors move to the "target"? and is it possible to set a "target" on a moving thing like an plane? because than u can set a target to a plane and the motors will move to the target and u can use a gun attached on the motors to shot the plane down.

    one month ago
  • Profile image

    Tell me more

    9 months ago
  • Profile image

    @WNP78 Thank you very much for the information, I came to a similar conclusion. Trigger matter

    1.6 years ago
  • Profile image
    Dev WNP78

    @mikoyanster first of all, that will trigger whenever any collider enters the trigger. This means it will get triggered many many times if the player flies through it, leading to a lot of aircraft spawned in the same place. Secondly, the GameObject field should be defined inside the class, instead of outside it. Thirdly, instantiating an asset may not be the best way to go about this. The AI spawner script will not activate until it is enabled. So instead of instantiating it from an asset, it would be better to have the AIAircraftSpawner already in place on your map, but make the gameobject it is on inactive (the checkbox by the object name in the inspector). Then, when the trigger activates, simply do AiAircraftSpawner.SetActive(true); to spawn the aircraft. This also means that it can only be activated once and won't repeatedly spawn aircraft on top of each other.

    +1 1.6 years ago
  • Profile image

    Hello! i´m trying to develop a simple code for spawn IA plane with Unity... i build this code...


    public GameObject AIAircraftSpawner;
    public class miko3TriggerPlane : MonoBehaviour{
    void OnTriggerEnter(Collider player){
    Instantiate(AIAircraftSpawner);
    }
    }


    I don´t know if i codding correctly, i obtain errors in each test. May you help me...? it´s posible spawn an AI Aircraft Spawner when player go to location (for example cube with trigger)? Thanks in advance! ;-)

    1.6 years ago
  • Profile image
    Dev WNP78

    @Tekwarrior which way are you trying to install them, just opening the files or copying them into the mods directory? If you're not, try copying them into the mods folder directly (if you can't find the mods folder see here)

    1.9 years ago
  • Profile image

    For some reason all mods I try to install from the Simpleplanes website don't seem to install, they just load for a very long time. Help?

    1.9 years ago
  • Profile image

    It will just stay in the middle.
    I cant aim higher.

    2.0 years ago
  • Profile image
    Dev WNP78

    @8bitgamer33 because when you're laser designating a target, it tends to be on the ground

    +1 2.0 years ago
  • Profile image

    Why doesn't it work for air-to-air missiles?

    2.0 years ago
  • Profile image

    Please improve this the targeting is a half a mile off when in persistent mode tring to target a block in the sky but it is moving with the object speed it would be awesome for anti-missile system targeting the missiles :)

    2.2 years ago
  • Profile image
    16.1k ShockRF

    @WNP78 OK, sorry (i was mentioned an Unity project, if it is on Github). I need just a method, which allows to spawn a target mark for ATA and ATG. Or list of SP methods, which will be awesome.
    Sorry for being shameless)

    3.0 years ago
  • Profile image
    Dev WNP78

    @ShockRF source code is not a concrete entity, it is a far-reaching concept which cannot be described in NTFS format. Compiled code being the rationalised end product, the process to create it requires you to divide the approximation for the output stack size by the amount of times it takes to find this value. These difficulties make it an NP-complete task so imma drop the mic here and leave

    3.1 years ago
  • Profile image
    16.1k ShockRF

    @WNP78 can you give a source code, please

    3.1 years ago
  • Profile image
    Dev WNP78

    @dootdootbananabus yes, that was months ago. I'm now using 5.3.6 which is what SP uses.

    3.1 years ago
  • Profile image
    12.8k NexusGaming

    @WNP78 5.3.6 or 5.3.7 I think is the version SP uses

    3.1 years ago
  • Profile image
    13.8k Fjorge

    How do you use ATG for this? It only works for ATA

    3.2 years ago
  • Profile image

    I love this, and it's especially useful to see what's directly below you, in front of you, etc.

    3.3 years ago
  • Profile image

    Incredible! I'm building a mod and I trying to make selectable ground objectives or destructible objects like box buildings for example. I thank you any help to solve this questions. Thank you!

    3.3 years ago
  • Profile image

    This will be very useful for Quadcopters and other types of vehicles that work kind of the same. Great job!

    3.4 years ago
  • Profile image
    34.9k DbE

    @WNP78 ok

    3.4 years ago
  • Profile image
    Dev WNP78

    @Stellarlabs then switch to it.

    3.4 years ago
  • Profile image
    34.9k DbE

    @WNP78 no

    3.4 years ago
  • Profile image
    Dev WNP78

    @Stellarlabs are you on air to ground mode?

    3.4 years ago
  • Profile image
    34.9k DbE

    its not working. LIVE mode. i pointed it at the ground as @DEATH2REVIVE said. pointed it at the target. nothing. this mod doesnt seem to work at all for me. its just a object that you can toggle to do nothing for me.

    3.4 years ago
  • Log in to see more comments