This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] Ride gameobjects  (Read 7557 times)

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
[QUESTION] Ride gameobjects
« on: August 13, 2015, 02:17:20 pm »
Hey!
Is it possible to have a gameobject (or a creature or whatever) to be ridden by a player (in the same way as e.g. wowhead.com/npc=33109 ) and at the same time be solid and walkinsideable* like ships and other transports?

*walkinsideable - a word made to compensate the poor vocabulary of the writer. It means something that could be walked in and traveled inside.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Chase

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 116
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #1 on: August 13, 2015, 07:54:48 pm »
Look at the flags of a bunch of those npcs that do that and find the flag they have in common.

Most private servers do not have the riding npcs coded very well though, like you jump into it, but you cant move, so you might have to code that yourself.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #2 on: August 13, 2015, 09:16:44 pm »
Quote from: "Chase"
Look at the flags of a bunch of those npcs that do that and find the flag they have in common.

Most private servers do not have the riding npcs coded very well though, like you jump into it, but you cant move, so you might have to code that yourself.

My riding npcs work absolutely perfect, BUT, as they are npcs, they are penetratable, which I do not want. Just to give an example, I want to be able to ride a ship like those in the Stormwind port.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Chase

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 116
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #3 on: August 13, 2015, 11:02:46 pm »
The ships are possibly wmos or something, to make a npc have collision you will need to make an object to spawn over it. (This is how the thanksgiving table works.)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Zebraka

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 119
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #4 on: August 14, 2015, 03:55:17 pm »
If you want "ride" and have the interface you should creat a npc however.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #5 on: August 14, 2015, 10:46:50 pm »
Quote from: "Zebraka"
If you want "ride" and have the interface you should creat a npc however.
I just want to move it around, no special abilities or interface.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Zebraka

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 119
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #6 on: August 15, 2015, 01:19:53 am »
gameobjects can't move.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Judorange

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 1
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #7 on: August 15, 2015, 01:33:28 am »
Gameobjects can be moved, but it's not optimal at all...
Many spam for not much, in the end... x)

The best option is still npcs... or mount, I think ^^'

I had the same idea, few days ago... But I do not yet know how to proceed either... I let germinate the idea :D
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Shakar

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 16
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #8 on: August 15, 2015, 08:02:57 am »
I think what he is asking about, is how to have custom transports? He/she mentioned ships like those in Stormwind (Assuming he means the ones that have npcs riding them going between maps/locations like Stormwind -> Valiance Keep). So, is that what you mean? Like with the airships in Northrend?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

saifi0102

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 42
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #9 on: August 15, 2015, 11:06:44 am »
You can either create a Vehicle NPC in which passengers and/or driver can enter but I don't know if its possible to make it moveinsidable :P

Other way is to make a transport gameobject. However, there are some limitations with transport gameobjects.
1. The transportation path must be predetermined in both, client and server in the DBCs. Hence a user can not control it.
2. You can only pause the transport animation at specific points which you determine in the paths DBCs.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #10 on: August 15, 2015, 12:22:47 pm »
Quote from: "Shakar"
I think what he is asking about, is how to have custom transports? He/she mentioned ships like those in Stormwind (Assuming he means the ones that have npcs riding them going between maps/locations like Stormwind -> Valiance Keep). So, is that what you mean? Like with the airships in Northrend?

Nearly right. I want to have a custom transport (with collision and interior), which I could mount like a vehicle and move around.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #11 on: August 15, 2015, 03:38:34 pm »
Quote from: "Смердокрыл"
Quote from: "Shakar"
I think what he is asking about, is how to have custom transports? He/she mentioned ships like those in Stormwind (Assuming he means the ones that have npcs riding them going between maps/locations like Stormwind -> Valiance Keep). So, is that what you mean? Like with the airships in Northrend?

Nearly right. I want to have a custom transport (with collision and interior), which I could mount like a vehicle and move around.

It is just not possible to implement player collision - which is essentially what you want at a specific time.

You can implement it for creatures because you can code them to think there is a barrier there (this is how creatures spreading out is implemented). But not for players since the client capabilities are not there.

You would need to use transports on predetermined routes, as previously said.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

saifi0102

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 42
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #12 on: August 15, 2015, 04:26:23 pm »
Quote from: "stoneharry"
You can implement it for creatures because you can code them to think there is a barrier there (this is how creatures spreading out is implemented)

That sounds interesting. Can you move the creature around and keep the collision object stick with it? And what do you mean by creatures spreading out?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

kojak488

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 351
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #13 on: August 15, 2015, 07:07:52 pm »
Quote from: "stoneharry"
It is just not possible to implement player collision - which is essentially what you want at a specific time.

You can implement it for creatures because you can code them to think there is a barrier there (this is how creatures spreading out is implemented). But not for players since the client capabilities are not there.

You would need to use transports on predetermined routes, as previously said.

That's not entirely true.  Well as far as saying that transports on predetermined routes is the only option for him, that's not true.  It's not.  There is a way to accomplish what he wants.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #14 on: August 15, 2015, 10:06:21 pm »
Quote from: "stoneharry"
It is just not possible to implement player collision - which is essentially what you want at a specific time.

You can implement it for creatures because you can code them to think there is a barrier there (this is how creatures spreading out is implemented). But not for players since the client capabilities are not there.

You would need to use transports on predetermined routes, as previously said.

Is it possible to make a usual vehicle npc, which, when stopped, would spawn an object (of the same model, but with collision) over itself, and then, when I mount it and start moving, it would despawn the object?


Quote from: "kojak488"
There is a way to accomplish what he wants.
You are the king of intriguing!
Jokes aside, what is it?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.