[LE] Three-Way crap with Dave's Arrows [message #266040] |
Wed, 13 June 2007 20:49 |
Genesis2001
Messages: 1397 Registered: August 2006
Karma: 0
|
General (1 Star) |
|
|
I'm making a Co-Op map through LE and I have a poke-able object that I want to disable a building controller (namely, the Nod Power Plant). I have looked through the scripts and found nothing about DISABLING the building; so I decided to find a script that applied damage to the "building" (JFW_Custom_Destroy_Building) but the parameter "Message" hard. I've been told that you are supposed to setup a custom message through a Dave's arrow and then have the arrow send a response back to the object that you want to (in this case, the Nod PP) to do the action you want it to do (for this case, destory/apply-damage to the building).
I need help understanding this concept and could someone teach me how to do this three-way sh*t with the dave's arrows???
-MathK1LL
|
|
|
|
Re: [LE] Three-Way crap with Dave's Arrows [message #266070 is a reply to message #266040] |
Wed, 13 June 2007 22:20 |
|
zunnie
Messages: 2959 Registered: September 2003 Location: Netherlands
Karma: 0
|
General (2 Stars) |
|
|
Note the ID of the powerplant controller (example: 123123)
Create a DaveArrow and note the ID of it (example: 124124)
attach the script JFW_Custom_Destroy_Building to it
enter 123123 for the building id/controller
enter 1000 for the message
To the pokable object attach the script
JFW_Poke_Send_Custom or maybe even JFW_Poke_Send_Custom_Cost
which will make the switch only work if you have enough money.
For the ID enter the ID of the DaveArrow 124124 and as message
put 1000 and param 1
Now when someone presses E on the switch it will send a message
(1000) to the object ID you entered (124124). The object that
receives the message will notice the msg is a match and it will
execute the script and kill the building.
"temporary disabling" the powerplant is another thing though,
this will destroy the powerplant and you wont be able to revive
it.
Basically how Customs work:
There is an object that will SEND the message
There is an object that will RECEIVE the message
When the message sent to the receiver is the same as the message
set to 'listen' for it will execute the script and do what that
script is supposed to do.
[Updated on: Wed, 13 June 2007 22:23] Report message to a moderator
|
|
|
|
|
Re: [LE] Three-Way crap with Dave's Arrows [message #266227 is a reply to message #266040] |
Thu, 14 June 2007 12:45 |
Brandon
Messages: 282 Registered: August 2006 Location: United States
Karma: 0
|
Recruit |
|
|
I understand how it works, but like I said, not sure on how plugging it in goes, I mean, what if I mix it up somehow? Well, I'll play with it today once the AI Bot Spawner list is finished (just 50 more spawners to go currently).
|
|
|