Remember me
You are here: HomeForumCyberix3D ForumGeneral DiscussionMultiplayer version
Welcome, Guest
Username: Password: Remember me

TOPIC: Spawn coding question.

Spawn coding question. 8 years 5 months ago #250

  • Marc-S
  • Marc-S's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hi Guys,

So im new here (literally been using Cyberix for a hour), and have a question.

I have made a mini game where my character can walk up to a car, get in and drive around.
The only issue with this is how to get him out of the car back to walking again.
I have got him "into" the car by using if colision - visible = false type coding, Which is fine for viewing purposes, but it means that after driving around for a bit, my guy has gone somewhere else and probably fallen off the edge.
Is there a code, or way of coding it so that on button press,(the exit vehicle button) the character respawns next to the car?

Thanks in advance
The administrator has disabled public write access.

Spawn coding question. 8 years 5 months ago #251

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 661
  • Thank you received: 628
Hello Marc,
Try to put something like this in your player's loop:
Capture_2015-11-12.jpg


Then use the Backspace key to get out of the car.

Regards,
Cyberix3D team
The administrator has disabled public write access.
The following user(s) said Thank You: Marc-S

Spawn coding question. 8 years 5 months ago #252

  • Marc-S
  • Marc-S's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Thanks guys!

Didn't realise 'THIS' was for the character. Should have guessed :p.
Will post if I have any other queries.

Thanks again
Marc
The administrator has disabled public write access.
Time to create page: 0.161 seconds