Jump to content
  • 0

Set coordinates with a variable?


GreenMagic793

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

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.

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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.

Link to comment
Share on other sites

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.

×
×
  • Create New...