Author Topic: Excuse me?  (Read 119 times)

chaaob

  • Newbie
  • *
  • Posts: 4
    • View Profile
Excuse me?
« 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?

mav

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Excuse me?
« Reply #1 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.Impenetr able
 
To implement the timing switch have a look at:
  AtomicTorch.CBND.CoreMod.Trig gers
  AtomicTorch.CBND.CoreMod.Syst ems.WorldObjectAccessMode
    or AtomicTorch.CBND.CoreMod.Stat icObjects.Structures.Doors.Ob jectDoorPublicState.IsOpened
 
I haven't done any modding of this kind yet, so let me know how it goes! :)

chaaob

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Excuse me?
« Reply #2 on: January 14, 2020, 11:28:26 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.Impenetr able
 
To implement the timing switch have a look at:
  AtomicTorch.CBND.CoreMod.Trig gers
  AtomicTorch.CBND.CoreMod.Syst ems.WorldObjectAccessMode
    or AtomicTorch.CBND.CoreMod.Stat icObjects.Structures.Doors.Ob jectDoorPublicState.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