script question [message #24002] |
Sat, 07 June 2003 19:31 |
|
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.
"ALL HAIL THE CHRONOSPHERE AND ITS CHRONOSHIFTY GOODNESS" -Aircraftkiller
|
|
|
script question [message #24021] |
Sun, 08 June 2003 03:03 |
|
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 #24581] |
Thu, 12 June 2003 16:59 |
|
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 |
|
General Havoc
Messages: 1564 Registered: February 2003 Location: Birmingham, England, Unit...
Karma: 0
|
General (1 Star) |
|
|
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
|
|
|