PDA

View Full Version : Car Enter/Exit


pacman24
10-05-2006, 07:30 PM
I got my enter/exit method ok by just changing the guys showing to false. how can i make it so the car will not move until he "enters" the humvee

thetrippster
10-06-2006, 08:41 AM
im kinda new to this program so i doubt i could help. umm maybe try setting his opacity to 0 as he is "getting" into the vechicle with a do together command? i dont know if this will help you but u never know. thats y there is a undo button.

pacman24
10-06-2006, 06:47 PM
i know how to do that. but how do i not let the player control the car untill i they "enter"

Mr Nemo
10-06-2006, 09:53 PM
What I would do is create a world class boolean variable and set its default to false. Then I would write the code at the end of the method in which the character enters the car:
(world.carIsControllable) set to true

At the beginning of all call events for movement( you'll need four different methods: one for forward, one for backward, one for left, one for right) I would place the following statement:

IF (world.carIsControllable) is true
(CAR) move (FORWARD,LEFT,RIGHT,BACKWARD) 1 meter;
ELSE
do nothing;
:D :D

pacman24
10-07-2006, 01:56 AM
thanks for that. i did something similar to that before you replyed and got it working. but thankyou