Data Realms Fan Forums
http://forums.datarealms.com/

Dropship opens hatch when doors blown off
http://forums.datarealms.com/viewtopic.php?f=73&t=46211
Page 1 of 1

Author:  Magmacow358 [ Thu Sep 21, 2017 6:24 am ]
Post subject:  Dropship opens hatch when doors blown off

I'm currently trying to tweak the basegame dropships so that when they lose their doors, they are forced to open the hatch and unload all cargo. I feel confident that I could actually get the hatch opening part to work, but I can't think of a way to have the dropship detect if its doors are missing.

Author:  CaveCricket48 [ Fri Sep 22, 2017 4:51 am ]
Post subject:  Re: Dropship opens hatch when doors blown off

In your Create(), do a check through all MOs, find ones that have the same PresetNames as the doors and the same RootID as the dropship. Then in your Update, constantly check if your door IDs are 255 (meaning they're destroyed) and then do your door controls if so.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/