Product Chat (Early Access) / [SOLVED] How to attach signs to door

Author
Message
Shadow_Master
3
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 14th Jun 2022 01:15 Edited at: 14th Jun 2022 01:20
Does anyone know how to attach a sign to a door? besides adding it as a texture?

I want the sign on the gate to move with it when player opens the door, is that possible?





BTW this is my MMA fighting ring, I set my female character inside as an enemy and boy is she tough to beat lol
I set her heath at 500, my at 2500 and yet she can defeat me lol

The author of this post has marked a post as an answer.

Go to answer

Attachments

Login to view attachments
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 14th Jun 2022 12:59
This post has been marked by the post author as the answer.
For an animated door this isn't really feasible, but for a physically moving door, i.e. one using the sliding_door or rotating_door behaviours then is would be possible to have a behaviour that links one entity to another and moves it as the other one moves.

When I get a moment or two I will knock something up.
Been there, done that, got all the T-Shirts!
PM
Shadow_Master
3
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 14th Jun 2022 16:49
@ AmenMoses thank you so much and that would be great. I will look at the type of behavior that I am using with this door, right now there is a thunderstorm going on where I live
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 14th Jun 2022 20:45 Edited at: 14th Jun 2022 20:45
https://vimeo.com/720394923

Attach to the sign and link the sign to the door.

Make sure the sign is set as physics off.
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
Shadow_Master
3
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 15th Jun 2022 00:16
Thank you @AmenMoses
Here is a screenshot and it works great except for a space between the door and sign when it opens lol but it looks great and does what I needed it to do
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 15th Jun 2022 13:50 Edited at: 15th Jun 2022 13:53
try remove the animation calls from door_rotate.lua
Quote: "--SetAnimationFrames( 1,30)
--PlayAnimation( e )"

seems much more accurate then
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 15th Jun 2022 15:05
The door rotate script was originally written for a door that had an animated door handle, not sure how it got dumped into MAX as a generic script.
Been there, done that, got all the T-Shirts!
PM
Shadow_Master
3
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 15th Jun 2022 22:38
thank you both @smallg and AmenMoses
PM
Shadow_Master
3
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 16th Jun 2022 20:02 Edited at: 16th Jun 2022 21:27
@AmenMoses Door Rotate is used to make doors that have no animation to move open and close in-game.

I also figure out that it is an offset issue that is making the sign have a space between the door in-game, it's no big deal. It works and to me, that is extremely important. I try to attach a lamp to my sliding-down wall and it was across the room in the game but in the editor, it was on the wall, I think your code is not the problem but max is right now with all the issues going on.

In fact, I got to write to Lee because a wall that I brought in from Sketchfeb shake when physics is on but is fine when physics is off lol another bug lol
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 16th Jun 2022 22:22
Yes, it is a bug in MAX, there is something weird going on under the covers with the position and /or orientation of entities isn't being reported correctly to the Lua functions. There are several issues raised on it but no indication whether they are being worked on.

Basically it seems to work ok as long as you don't rotate the entities.
Been there, done that, got all the T-Shirts!
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 17th Jun 2022 14:01 Edited at: 17th Jun 2022 14:01
Aha, I did have a slight math issue in the script.

Try this one.
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
Shadow_Master
3
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 17th Jun 2022 16:34 Edited at: 17th Jun 2022 16:41
Thank you again @AmenMoses

It works perfectly, many thanks
PM

Login to post a reply

Server time is: 2024-04-28 10:30:18
Your offset time is: 2024-04-28 10:30:18