Skip to main content

Search

is it possible to detect when being touched by a laser?

  • Cyan

    answering myself :p

    Maybe I can spawn either a trigger zone or a tag, at touched coordinate. That would act as laser detector, but it'll be an area around the object and could trigger more than one object at once if they are too near of each others. I'll try with that method.

    Having a real laser "touched" variable on a group/object might be useful.

  • TAPgiles

    Exactly. That's the method I use.

    Here's a tutorial where I make something like that. It uses a setup from a previous tutorial that finds the point the imp is pointing at. But the logic-at-position stuff is covered in this video. https://www.youtube.com/watch?v=WwUfkNQLzZU

  • Cyan

    Thank you for the two video tutorials :)
    and thanks for all your documentations, I didn't have time to read all yet, but it's very useful.

  • Cyan

    I don't know all the available tools yet, so I didn't thought about the "hover" properties of the imp.
    Is it possible to set the imp position without possessing?
    If it is, I could spawn an imp tag positioning at laser's pointer, and use the imp hover properties to detect highlighted object!

    I suppose the tag for imp possession position doesn't have the tip detected at the end? I'll try that later today.
    If not, I'll just use a zone/tag detector.
    thanks again :)

    edit:
    I couldn't to do what I wanted: spawn the imp at target point to use the hover properties.
    I have a laser in a puppet pointing forward to detect front enemies in order to display its name, even if far from the player. at laser collision I emitted an object with a tag, its position is linked to imp location when possessed, but the imp didn't appear. Maybe a problem with imp possession as I have multiple controller gadget in the puppet. I feel like I'm doing random tries and errors.
    I realized laser might not be what I need as it might point higher/lower than the enemy even if located in front. I might need another element detector method.

    but I think having a "touched" properties for object/groups might be useful to other players too. It'll be easier than needing to spawn something and detect it.

Please sign in to leave a comment.