AtomicTorch Studio Forums

CryoFall => Game discussion => Topic started by: chaaob on January 14, 2020, 12:57:57 AM

Title: Excuse me?
Post by: chaaob on January 14, 2020, 12:57:57 AM
Excuse me?

I want to add a door with timing switch to the map, and the door can't be damaged by players. How can I do it?
Title: Re: Excuse me?
Post by: mav on January 14, 2020, 10:45:08 AM
I am not entirely certain what you mean by "timing switch".

To create a door that can't be damaged have a look at:
  Core.cpk\Scripts\StaticObjects\Structures\Doors\
  and set ObjectDefensePresets.Impenetrable
 
To implement the timing switch have a look at:
  AtomicTorch.CBND.CoreMod.Triggers
  AtomicTorch.CBND.CoreMod.Systems.WorldObjectAccessMode
    or AtomicTorch.CBND.CoreMod.StaticObjects.Structures.Doors.ObjectDoorPublicState.IsOpened
 
I haven't done any modding of this kind yet, so let me know how it goes! :)
Title: Re: Excuse me?
Post by: chaaob on January 14, 2020, 11:28:26 AM
Quote from: mav on January 14, 2020, 10:45:08 AM
I am not entirely certain what you mean by "timing switch".

To create a door that can't be damaged have a look at:
  Core.cpk\Scripts\StaticObjects\Structures\Doors\
  and set ObjectDefensePresets.Impenetrable
 
To implement the timing switch have a look at:
  AtomicTorch.CBND.CoreMod.Triggers
  AtomicTorch.CBND.CoreMod.Systems.WorldObjectAccessMode
    or AtomicTorch.CBND.CoreMod.StaticObjects.Structures.Doors.ObjectDoorPublicState.IsOpened
 
I haven't done any modding of this kind yet, so let me know how it goes! :)




Thank you first

If I modify the doors that players can use, it will affect their buildings. What I hope is, the doors that players can't build. I want to make an area map to open to players regularly