Jump to content

Soamp

Members
  • Posts

    128
  • Joined

  • Last visited

Everything posted by Soamp

  1. Hi Sorry for my latency! I attached my code. Would you take a look please Thanks in advance Pi_Character.lua
  2. here is what I've done: my character is for example in (10,10,10) behind the car: by pressing "E" he will get in the car and mesh and controller will be just invisible. I can drive to a new position like (100,100,100): in 100,100,100 I want to get out of the car. so I set character controller position to 100,100,100. but it will appear in 10,10,10: do you know why?! here is my script: Pi_Character.lua
  3. Hi, I've a problem with controller. I have a character who can walk around freely and drive a car with sending a "use" message. I hide it's model and controller when it's driving a car but it appears in it's old position (where it got on the car) when it get off the car. I used SetPosition on controller and set it's position to my car pivot position when it get off the car but the controller wont move! object.controller:SetPosition(carpivot:GetPosition(1),1) When I use UpdateController instead of SetPosition, the controller moves from it's original position but it's too difficult to use UpdateController to move the controller exactly wherever I want. self.controller:Update(EntityRotation(carpivot,1).y,CARSPEED.z,0, 0, 5000, 10) BTW. I'm using PiCharacter but I made some changes on it's sourcecode. I have a couple of questions : Did anyone work on getting on/off vehicles? Is there any way to use SetPosition correctly on controllers? Am I doing somthing wrong? thanks
×
×
  • Create New...