Jump to content

Looking for a little help with my elevator script


teddybearman

Recommended Posts

Ok, so at the moment I'm using a script for an elevator that lets you choose between 3 levels and then moves the player to the selected level. The problem is any followers the player has do not follow; presumably because the player isn't going through a standard teleport door, but is actually being moved instead. Here's the script that I'm currently using

 

scn velevator

short levelselect
short elevactive

Begin OnActivate

showmessage vlevelselect
set elevactive to 1

End

Begin gamemode

if elevactive == 1

	Set elevactive to 0
	Set levelselect to GetButtonPressed

		if levelselect == 0
				player.Moveto Level1ElevRef
		elseif levelselect == 1
				player.Moveto Level2ElevRef
		elseif levelselect == 2
				player.Moveto Level3ElevRef
		Endif
	Endif

End

 

Is there any script that will detect if the player has followers and who those followers are? Then I could add a moveto for the follower that runs immediately after the player move. Or is there a better way to move the player to the proper destination?

Link to comment
Share on other sites

I think I MAY know a workaround for this. Place doors that go to the floors underground and place the teleport markers where you want them to appear. For example on the first floor there would be two doors there markers would be on the second and third floors, there would be two doors on the second floor one would point to one of the doors on the first floor and the other would point to one of the two doors on the third floor, there would be two more doors on the third floor one would point to the other door on the first floor and the other would point to one of the doors on the second floor. I think the ai will use these doors even though they are in the ground and the player can't.

 

This might work I haven't tested it out myself yet. This is based on the assumption that the ai can use the door wherever it is if the player is not in the cell. (if the elevator teleports the player to 3 places in the same cell it won't work)

Link to comment
Share on other sites

Hmm, tried underneath, just behind the wall, and in plain sight but set to disabled (there's one inside the megatonworld entrance that's in plain site and set to initially disabled that connects to the one underneath at the outside entrance you mentioned), but no luck. I looked at the object info on the two manholes and they're marked as Follower Escape Hatches which does seem to imply they're intended for followers to use; but they also refer to the Power of the Atom sidequest, so maybe there's a script involved with their use?

 

Looks like it's back to square one, I may have to rethink my approach to the elevator altogether.

 

Well that or say screw the followers because I personally hate having followers anyway. :P

 

Thanks for the idea though, I'll keep playing around with it a bit to see if I can make it work.

Link to comment
Share on other sites

I think this may be a navmesh problem; I put the doors out in plain sight and used them instead of the elevator and the follower still did not follow. Moved him to level 3 with me though, and then used the elevator to go to level 2 and he followed just fine.

 

I honestly hate navmeshing, I've honestly spent more time on the navmesh than any other part of this stupid thing and despite that I have now completely redone it 3 times, and everything seems to indicate that an npc should be able to use a teleport properly, they still can't. Grrr.

Link to comment
Share on other sites

Not yet, I'm still fiddling with the navmesh on the first floor around the elevator. What I'm finding baffling is the navmesh on the 3rd floor is way messier around the elevator than on the first, yet going from the 3rd floor to another floor works fine. Now when I run the cover/finalize mesh tools the triangles around the teleport markers aren't even turning green. Or sometimes it will go green under only one. Honestly I think navmeshing around the teleport has a lot more to do with horseshoes in an uncomfortable location than anything resembling reason.
Link to comment
Share on other sites

Ok, here's the good news: It works! I pushed the doors underneath the floor on the 2nd and 3rd floor and Charon was able to follow me from the 3rd to 2nd floor and back, as well as 3rd to 1st and 2nd to 1st. :thanks:

 

The bad news is, he still won't follow me from the first floor to anywhere else. :wallbash: And seriously, that navmesh around the elevator on the first floor is starting to look purty. Maybe I should go back to jumbled mess, because those ones seem to work fine!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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