Jump to content
  • 0

Set coordinates with a variable?


Question

Posted

Hey guys,

 

Is it possible to use a variable to set an NPC's coordinates? I want to be able to change an NPC's coordinates from the top of the file without digging through thousands of lines of code changing each individual NPC's placement. So, instead of having to go and change coordinates, can I make the coordinates a variable which I can then set and change whenever I want? If so, how can I do this? Thanks.

 

 

1 answer to this question

Recommended Posts

  • 0
Posted

there are a few "way" ... create a custom short/simple script to store the coordinates, then use OnInit + [movenpc] to move the npc around.

 

but its pointless. it's a totally unnecessary works.

 

I mean, you could actually use the Search Function in text editor to find the npc straight away and adjust the coordinate. That's why the Search Functions is made for, to let you go through thousands, million of lines without need to scroll through lines by lines of script.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...