Pular para o conteúdo principal

Pesquisa

How do I get the laser scope to work with the impact sensor

  • Echarin

    I don't know exactly what you're trying to do, but you shouldn't need a Laser Scope for this if I'm understanding it correctly. The Impact Sensor should be enough, along with some wireless gadgets. Place a Wireless Receiver on the object to be destroyed, and a Transmitter on the other one. Give the Transmitter a name and refer to that name in the Receiver.

    Place a Destroyer on the object that gets destroyed and wire the Receiver up to that. Set the Zone Shape to something that makes sense for your purposes. If this is the only object that can be destroyed via this method in the level you can safely set it to Scene (it'll receive a signal from anywhere in the level), otherwise you'll need something smaller (though still big enough to be able to "see" the Wireless Transmitter on the destroying object when it comes into contact with the to-be-destroyed object).

  • calabitale

    I'm trying to have something like a laser beam attack, hit an objects and then destroy that object.

  • Echarin

    Alright, what you want to do in that case is emit an object (a small sphere will do) where the Laser Scope detects the object. To do that you simply wire the Hit Position from the Laser Scope to the Scene Space Transform of the Emitter.

    Then you simply place a Tag onto the sphere (give the Tag an appropriate name), which you then set to emit. Make the lifetime of the emitted object 0.1 seconds so it doesn't hang around and destroy things that walk into it, or destroy it some other way.

    Then you place a Trigger Zone onto the object that gets destroyed. Make the zone a little bit bigger than the object itself (big enough to detect the little sphere when it's attached to the outside of the object). Then wire the Trigger Zone into the Destroyer for that object.

  • calabitale

    Thanks for the help Echarin.

Por favor, entrar para comentar.