Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » script question
script question [message #24002] Sat, 07 June 2003 19:31 Go to next message
OrcaPilot26 is currently offline  OrcaPilot26
Messages: 394
Registered: February 2003
Karma: 0
Commander
How can I destroy one building upon the destruction of another building. I tried using the JFW_Death_Send_Custom and JFW_Destroy_Building but it didn't work. It might be because i didn't get the message right and I need to know how exactly messages work anyway.

http://nova.deadlyfear.com/uploads/files//sig_orca.jpg
"ALL HAIL THE CHRONOSPHERE AND ITS CHRONOSHIFTY GOODNESS" -Aircraftkiller
script question [message #24021] Sun, 08 June 2003 03:03 Go to previous messageGo to next message
General Havoc is currently offline  General Havoc
Messages: 1564
Registered: February 2003
Location: Birmingham, England, Unit...
Karma: 0
General (1 Star)
Attach JFW_Death_Send_Custom to the building that you want to destroy another when it is destroyed. See below for the settings.

JFW_Death_Send_Cusom
ID = The ID of the daves arrow i mention below.
Message = Any number, 16 for example
Paramater = none, leave it blank, try 1 if this doesn't work.

Attach JFW_Custom_Destroy_Building to a dave's arrow. This is used as a receiver and will destroy the building when it receives a custom specified. See the parameters below.
ID = the building controllers ID you wish to destroy.
Message = The message you specified in the script before, 16 for example

As you can see the script works in two parts. the building that gets destroyed sends a signal to a dave's arrow then destroys another building. The use of daves arrow means that you can set the script to also destroy another building when the second one is destroyed or destroy the first one when the second one is destroyed and so on.

If you need any more help, let me know.

_General Havoc


Visit my website at http://renhelp.laeubi-soft.de powered by laeubi.de
"SHUT UP AND MOD" - Dante
"ACK is the Simon Cowell of modding" - Ultron10
Scripts.dll Debugger, Map Scripter and Tutorial writer

Computer Science Bsc
Aston University in Birmingham, UK
script question [message #24571] Thu, 12 June 2003 15:15 Go to previous messageGo to next message
OrcaPilot26 is currently offline  OrcaPilot26
Messages: 394
Registered: February 2003
Karma: 0
Commander
that actually worked, thanks General Havoc.

Now, I have another question. How can you destroy a building after a timer ends.


http://nova.deadlyfear.com/uploads/files//sig_orca.jpg
"ALL HAIL THE CHRONOSPHERE AND ITS CHRONOSHIFTY GOODNESS" -Aircraftkiller
script question [message #24581] Thu, 12 June 2003 16:59 Go to previous messageGo to next message
General Havoc is currently offline  General Havoc
Messages: 1564
Registered: February 2003
Location: Birmingham, England, Unit...
Karma: 0
General (1 Star)
Would you believe it, there is a script called JFW_Timer_Destroy_Building I wonder what it does? Basically it operates like normal scripts, just fill in the time and attach it to a building to destroy and it should destroy the building after that amount of time has elapsed. I haven't tested it but it should work in theory if it was written correctly.
JFW_Timer_Destroy_Building (destroys a building when the timer expires)
	Time (how long the timer should run for)
	TimerNum (what number to use for the timer)


_General Havoc


Visit my website at http://renhelp.laeubi-soft.de powered by laeubi.de
"SHUT UP AND MOD" - Dante
"ACK is the Simon Cowell of modding" - Ultron10
Scripts.dll Debugger, Map Scripter and Tutorial writer

Computer Science Bsc
Aston University in Birmingham, UK
script question [message #24699] Fri, 13 June 2003 14:16 Go to previous message
General Havoc is currently offline  General Havoc
Messages: 1564
Registered: February 2003
Location: Birmingham, England, Unit...
Karma: 0
General (1 Star)
Arrow If anyone needs help with any other scripts i'm here to help.

_General Havoc


Visit my website at http://renhelp.laeubi-soft.de powered by laeubi.de
"SHUT UP AND MOD" - Dante
"ACK is the Simon Cowell of modding" - Ultron10
Scripts.dll Debugger, Map Scripter and Tutorial writer

Computer Science Bsc
Aston University in Birmingham, UK
Previous Topic: Giving Harvesters Keycards
Next Topic: BF42 Update,
Goto Forum:
  


Current Time: Tue Dec 24 20:16:23 MST 2024

Total time taken to generate the page: 0.00691 seconds