Scripts / spaceship HUD help

Author
Message
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 12th Mar 2016 12:42 Edited at: 12th Mar 2016 12:44
Hi all, I'm trying to combine the drivecar script by smallg and the bb helmet script with the idea that when you enter the ship you get a hud, I have it sort of working as in you can enter the ship and the hud appears. problem is when the show image is used the ship then doesn't move so as usual ive missed something :/



what am i missing guys? (apart from some grey matter) also ive noticed that you can freely rotate wheras I would like the hud to stay fixed although that's not that important as I could be a helmet I suppose?
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 12th Mar 2016 14:30
did you remember to set the name in the ifused field?
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 12th Mar 2016 14:36 Edited at: 12th Mar 2016 14:43
yes m8 if I don't it fly's away lol its something to do with the ShowImage(imagenumber) I had it come in after freezeplayer but then when I entered the ship the Hud showed correctly but the ship just bobbed up and down (sry the last snippet had it in the wrong place this is how I was trying to use it) Line 52 is where I added show image



Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 12th Mar 2016 14:55 Edited at: 12th Mar 2016 14:58
Tbh ive got it kinda working quite nicely, except for the bobbing when you accelerate and still need to find a way if the player exits the hanger without the ship dies, or floats about (if helmet is on) .eg no footsteps been looking at messing with gravity there but its coming along slowly. or maybe use a door that wont open until you are in the ship and then not to be able to exit the ship...hmm
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 12th Mar 2016 15:23
try this

lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 12th Mar 2016 15:46 Edited at: 12th Mar 2016 17:12
That works the only thing is that its on the player outside the ship whereas I was trying to get it to only appear inside the ship, nice tho works well inside less bobbing too which is nice :Edit got it to work on entering the ship by moving lines 12-17 to line 35 after freeze player now outside the ship= no hud and inside you have the hud ....sweet thx smallg
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 12th Mar 2016 16:58
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 12th Mar 2016 17:13 Edited at: 12th Mar 2016 17:23
oh you redid it ok i'll try that one as well cheers, so i'll need to add hidehud on exit to lose the hud?
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 12th Mar 2016 17:45
use SetSpritePosition(helm_s,200,200) to remove the hud
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 12th Mar 2016 19:03
ok cheers m8 ):
=VX=Doggy
15
Years of Service
User Offline
Joined: 29th Nov 2009
Location: USA NC
Posted: 12th Mar 2016 21:00 Edited at: 12th Mar 2016 21:01
i'd like to see a video of this working if you can, sounds interesting
PM
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 12th Mar 2016 22:15 Edited at: 12th Mar 2016 23:05
video is on my other post m8 (space wip) or space scene in 5 mins or latest
https://forum.game-guru.com/thread/214944
MChapman
9
Years of Service
User Offline
Joined: 19th May 2015
Location: USA
Posted: 28th Mar 2016 02:22 Edited at: 28th Mar 2016 03:48
edit: Resolved sorry.
Markchapman10 is my Skype let's have some dev talk.

Login to post a reply

Server time is: 2024-12-22 15:41:57
Your offset time is: 2024-12-22 15:41:57