Gadgets: Laser Scope

Creator: LadylexUK
Date: 19 Aug 2019
Length: 19:21
Level: Basic
Type: Logic Beginners Guides

Description

Looking at the laser scope and creating an AI wall detection and turning mechanic.

2 thoughts on “Gadgets: Laser Scope

Add yours

  1. I use logic a lot, but I can’t figure out how to make a range finder. I want a visual display that shows the distance between me and a waypoint, a wall or tree should not hinder this distance. I found the x-ray function on the laserscope gadget middle tab, and I think that is the solution. but I don’t get it working. am I looking in the right direction?

    Like

    1. Yes and no. The laserscope only activates on a very specific line, and I am assuming you want the distance to be visible even if the player is facing the wrong way. You can calculate distance between two tags . Wire the scene space transform on each of your tags to a splitter. Place a calculator set to minus and wire the translation tags to A and B. Wire the result to a number gadget and set the display format to two decimal places. This is your distance between the two tags.

      Like

Comments and Feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: