Trouble removing object through LUA.
Moderator: Moderators
-
SkinnyODST
- Lieutenant Colonel

- Posts: 545
- Joined: Mon Jul 04, 2016 10:56 pm
- Location: My other account
- Contact:
Trouble removing object through LUA.
I have a giant Venator prop in the sky of my map. I`ve upped the unit count for one of my map`s eras and when a certain amount of units spawn, the Venator prop glitches out and parts of it fly around the screen until the game crashes. I`ve tried adding KillObject("rep_cap_venator_dorsal_hanger") to my lua but for some reason its still there. I`ve also tried "DeleteObject", but that stops units from spawning. Does anyone know how I`d delete/remove the Venator from that era?
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Trouble removing object through LUA.
What's the ClassLabel of rep_cap_venator_dorsal_hanger? Prop? Armedbuilding? What?
-
SkinnyODST
- Lieutenant Colonel

- Posts: 545
- Joined: Mon Jul 04, 2016 10:56 pm
- Location: My other account
- Contact:
Re: Trouble removing object through LUA.
Marth8880 wrote:What's the ClassLabel of rep_cap_venator_dorsal_hanger? Prop? Armedbuilding? What?
Hidden/Spoiler:
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Trouble removing object through LUA.
Try giving it a MaxHealth value in its ODF. Doesn't matter what the value is, just something.
-
SkinnyODST
- Lieutenant Colonel

- Posts: 545
- Joined: Mon Jul 04, 2016 10:56 pm
- Location: My other account
- Contact:
Re: Trouble removing object through LUA.
Still doesn`t work. It still shows up and still glitches out.
