Can't get Wiki Line of Sight script to work...

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Can't get Wiki Line of Sight script to work...

Post by sheamkennedy »

EDIT: I just noticed there is a simplified version of the LOS that is more suitable for what I'm doing. I have tried it and it seems to work asides from NPC misalignment which I should be able to fix pretty easily. I think both LOS scripts on the Wiki have this issue.

After having a discussion with TMC about my homemade LOS script I decided it would be wise to check the LOS script on the Wiki as I might be able to modify it to meet my needs.

I decided to start off by just getting the LOS script working as is but it doesn't seem to work. I made a wandering NPC #0 who is to be my guard, I have the New Game script setup in the engine, I've set the Autorun to Vigilant Guard Loop, I setup the onkeypress script for debugging too and followed the instructions on the wiki.

When I test the map the debug key does not work. Also I can't get the guard NPC to chase me unless I walk into that NPC while it's walking which causes a misalignment issue and gets that NPC stuck while it speeds up.

Has anyone successfully run this script or could I be doing something wrong.
Last edited by sheamkennedy on Tue Dec 26, 2017 1:51 pm, edited 1 time in total.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Post Reply