Jump to content

MOVE Player Scripting issue....


Deleted2746547User

Recommended Posts

Trying to move player from ground (exterior) to rooftop marker (exterior) via ladder (and ability to go back down)... but cant seem to get it to work.. Any thoughts? Ladder has script attached and is linked ref to marker.... Is this the right direction or am I completely off base...

 

scn RPCROOFLadderSCRIPT

 

;Supposed to move player from ground exterior to roof exterior marker via ladder

 

ref ActivatingActor

ref LinkedMarker

 

begin OnActivate

 

set ActivatingActor to GetActionRef

 

if ActivatingActor == PlayerRef

Activate

else

Set LinkedMarker to GetLinkedRef

ActivatingActor.MovetoMarkerWithFade LinkedMarker

endif

 

end

Link to comment
Share on other sites

Try using this code instead on the OnActivate block:

 

set ActivatingActor to GetActionRef

if ActivatingActor == Player
	Set LinkedMarker to GetLinkedRef
	ActivatingActor.MoveTo LinkedMarker
endif

 

I have never done this sort of scripting before so this is a shot in the dark. But try it anyways. Maybe it will work.

Link to comment
Share on other sites

Just create a door that uses the ladder mesh. There is probably already one existing that you can use.

Put one on the ground and one on the roof.

Tick the teleport box on one and choose the other as the target.

 

 

Thanks for replying... funny that, i was actually looking at another post you made (maybe a while ago) and was about to send you a PM.. :)

Link to comment
Share on other sites

No problem, by the way, even if that works, you will need to expand on it to allow player companions to pass through the marker. That code (if it works) only transports the player.

 

Hmm, I just checked the script attached to the exterior ladder at hoover dam (same thing you are trying to do) and its exactly the same as your first script. So the problem is not with your script. It should be something else.

 

On an entirely different note, why do you need to write an entirely new script? You could just use the door markers VHDExteriorLadder (ground piece) and VHDExteriorLadderFake (rooftop piece) which are already marked as door markers and just link them up (UtlHallBgEndSewerExLad02: Static piece which looks like the rooftop part of an exterior ladder; might want to use it right behind the rooftop marker since the rooftop piece is invisible).

Link to comment
Share on other sites

  • Recently Browsing   0 members

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