Jump to content

Scripting help needed


rip88

Recommended Posts

EDIT; Problem solved ty

 

I have created a new piece of "Furniture". a "pool raft"

NPCs can use it just fine.

However, due to its position in world space, (height issue caused by being placed in water)

Players can not enter properly, I have solved this problem with a simple script that moves the player into position.

 

1 problem left is, If the Player "activates" an occupied raft, it still moves the player. (Not into "laydown" beside occupant, Just standing on top of occupant).

And yes, without my script the normal "someone is already using this" is present, and functioning. Just like regular furniture.

 

 

so... There then must be an occupancy check I can run in my script .....(because before my script something was checking it)

 

Does anyone know what might be?

 

Thanks, RIP88

 

Ps. my script for reference

ObjectReference Property MoveToMarker Auto 
{where to move the Player}

auto state waiting
   EVENT onActivate(objectReference akActionRef)
   Actor triggerActor = akActionRef as Actor

      ; Test to make sure its the Player
      If akActionRef == Game.GetPlayer()

      ; move the actor
      triggerActor.MoveTo(MoveToMarker)

      endif
   EndEVENT
EndState 

Edited by rip88
Link to comment
Share on other sites

  • Recently Browsing   0 members

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