Destroy a Building after X Amount of Time [message #469300] |
Thu, 14 June 2012 17:51 |
Sn1per74*
Messages: 939 Registered: April 2006
Karma: 0
|
Colonel |
|
|
Hey Guys,
I'm working on an attack and defend map on the M00_Tutorial Level. I replaced all of the controllers and such with the multiplayer ones and even have the weapons factory creating vehicles. However, I need the NOD base to be destroyed if GDI defends their base long enough. The only way I could think of doing this is destroying the NOD controllers exactly one second before the game would normally end. So, is there a script that will destroy and object after a specified amount of time?
Thanks
Creator: AoBFrost
|
|
|
|
Re: Destroy a Building after X Amount of Time [message #469310 is a reply to message #469300] |
Thu, 14 June 2012 22:30 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Try getting hold of jonwil and ask him how some of his scripts work.
Here is one but I don't know exactly how it works.
JFW_Custom_Destroy_All_Buildings
or maybe.
JFW_Delay_Custom with JFW_Damaged_Send_Custom_Amount or JFW_Damaged_Send_Custom
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
Re: Destroy a Building after X Amount of Time [message #469313 is a reply to message #469310] |
Thu, 14 June 2012 23:52 |
Sn1per74*
Messages: 939 Registered: April 2006
Karma: 0
|
Colonel |
|
|
Zunnie created a script for me (z_timer_destroy_object) that kills an object after a certain amount of time. I just set the parameter as 1790 seconds (29 minutes and 50 seconds for those mathematically challlenged) and it destroys the buildings controllers. Worked like a charm
He said it would be included in the next set of scripts to be released- for future reference.
Creator: AoBFrost
[Updated on: Thu, 14 June 2012 23:53] Report message to a moderator
|
|
|
|
Re: Destroy a Building after X Amount of Time [message #469318 is a reply to message #469316] |
Fri, 15 June 2012 03:23 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
danpaul88 wrote on Fri, 15 June 2012 02:47 |
It's no wonder we end up with zillions of scripts in LevelEdit when people can't be bothered having a quick look at whats available and just re-implement it for no good reason.
|
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
Re: Destroy a Building after X Amount of Time [message #469328 is a reply to message #469300] |
Fri, 15 June 2012 05:48 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
Which is why I have started writing detailed documentation for scripts, but there are a lot of them to get through.
To be fair though, in this instance, a ctrl+f for 'Destroy' in the list of scripts would turn up all three of those possibilities.
It also doesn't help that far too many of the scripts we have are written for a very specific purpose with very little flexibility, hence the proliferation of 'base defence with VTOL, without VTOL, with infantry, without infantry, with stealth, without stealth etc etc etc etc etc' type scripts. There's no reason those couldn't all have been combined into a single script with parameters to determine what it can shoot at (and, as a matter of fact, I did exactly that with dp88_AI_Turret).
[Updated on: Fri, 15 June 2012 05:50] Report message to a moderator
|
|
|
Re: Destroy a Building after X Amount of Time [message #469333 is a reply to message #469328] |
Fri, 15 June 2012 09:13 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
danpaul88 wrote on Fri, 15 June 2012 07:48 | Which is why I have started writing detailed documentation for scripts, but there are a lot of them to get through.
To be fair though, in this instance, a ctrl+f for 'Destroy' in the list of scripts would turn up all three of those possibilities.
It also doesn't help that far too many of the scripts we have are written for a very specific purpose with very little flexibility, hence the proliferation of 'base defence with VTOL, without VTOL, with infantry, without infantry, with stealth, without stealth etc etc etc etc etc' type scripts. There's no reason those couldn't all have been combined into a single script with parameters to determine what it can shoot at (and, as a matter of fact, I did exactly that with dp88_AI_Turret).
|
I can help you out with the scripts I've done a hole hell of a lot of them in LE, back when I started Ren.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
|