Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » [LE] Three-Way crap with Dave's Arrows
Re: [LE] Three-Way crap with Dave's Arrows [message #266070 is a reply to message #266040] Wed, 13 June 2007 22:20 Go to previous messageGo to previous message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma:
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.


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png

[Updated on: Wed, 13 June 2007 22:23]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bots part 2
Next Topic: Models
Goto Forum:
  


Current Time: Sat Dec 21 06:48:46 MST 2024

Total time taken to generate the page: 0.00804 seconds