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)

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION] Ride gameobjects
« Reply #45 on: October 07, 2015, 02:07:03 pm »
Quote from: "Смердокрыл"
I dont think thats the way for me, since I want the ship to be also mounted by several other npcs (e.g. cannons) like this tank is mounted by a turret (and I would appreciate if someone told me how its done because I have no idea and I couldnt find a tutorial).
Thats not that big problem at all, at least it should not be. Some ships have NPC crew sailing on them, so there is some system enabling even this. But I don't know where and how is it being set. I only know that ID of NPC "crew" is also in gameobject_template, but I have no idea to what table it reffers.

Quote from: "Смердокрыл"
If I just use the same model path (e.g. WorldEXPANSION02DOODADSShipsND_Icebreaker_ship_BG.M2) for both the npc and the gob, it should work, shouldnt it?
You might get some visual flickering bugs and might have issues with clicking on NPC vehicle to enter it. Some sort of invisible collision object would be far better, if you were able to make/get it.

Quote from: "Смердокрыл"
But that wouldnt allow people to enter the ship's interior, would it?
Not necessarily, it would work for moving NPC version, so you can use in fact both ways together. Push-out aura would be active on NPC only while NPC is moving (when passenger is inside vehicle), and it would be deactivated while NPC is standing (and while collision gob is spawned).


About NPC being "mounted" on another NPC, I can't help you with this while I never really toyed with vehicles much. Btw, I found a little flaw in that SAI script - it might not work for vehicle with more than 1 passenger. For instance, if you have 2 people inside of vehicle and one leaves, but one still remains there... What will happen? I guess I know and its not what we wanted. Well, it seems it won't be that easy.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #46 on: October 07, 2015, 02:31:28 pm »
Quote from: "Amaroth"
I only know that ID of NPC "crew" is also in gameobject_template, but I have no idea to what table it reffers.
I've seen that but it only has fields for DisplayIDs, so I presume its only visual.

Quote from: "Amaroth"
if you were able to make/get it.
Key words:
Quote from: "Amaroth"
if you were
Im always ready to learn though. If there is a tutorial, I'd appreciate a link)

Quote from: "Amaroth"
Push-out aura would be active on NPC only while NPC is moving (when passenger is inside vehicle), and it would be deactivated while NPC is standing (and while collision gob is spawned).
That is a great idea, I'll surely use it if I succeed in making the spell)

Quote from: "Amaroth"
if you have 2 people inside of vehicle and one leaves, but one still remains there... What will happen? I guess I know and its not what we wanted. Well, it seems it won't be that easy.
I did think of this problem and the solution (temporary I hope) I came up with is that the vehicle would only be allowed to move if all the passenger places are occupied. I think this would be achievable via SAI but Im not sure.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION] Ride gameobjects
« Reply #47 on: October 08, 2015, 10:28:11 pm »
Can I use event 34 to check if there is any movement or not and depending on that despawning or spawning the gobject?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION] Ride gameobjects
« Reply #48 on: October 10, 2015, 11:09:19 am »
No idea. Just try it, experiment a little bit with some sort of test NPC/gob with test script which fill, for instance, make NPC cast some abilitty, so you will see if event triggers script and under which conditions it triggers script.

I so miss W3 trigger editor... SAI is horrible system to work with.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz