Combination of scripts required [message #78655] |
Sun, 11 April 2004 04:17 |
weetbix
Messages: 16 Registered: May 2003
Karma: 0
|
Recruit |
|
|
Hi guys
I'm looking for a combination of scripts that will destroy a certain object when that object moves into a certain zone and give X number of points to the team that put it into the zone(side specific).
ie. In soccer when a team gets the ball(object) into the goal(zone).
|
|
|
Combination of scripts required [message #78658] |
Sun, 11 April 2004 04:53 |
|
ok.
Put JFW_Give_Points_On_Death on the "ball".
Put JFW__Zone_Send_Custom_Preset on the "goal". (you can set this one to only trigger on a certain preset)
Have that send to JFW_Custom_Destroy_Object to destroy the object.
Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
|
|
|
Combination of scripts required [message #78936] |
Sun, 11 April 2004 21:48 |
weetbix
Messages: 16 Registered: May 2003
Karma: 0
|
Recruit |
|
|
Having done what you said to do I find it's still not working.
Here is the information about the scripts and how I have set them up. (NOTE: This is for a RenAlert Map (Using scripts 1.5))
Script Zone (Goal)
- ID: 100008
- Script Attached: JFW_Zone_Send_Custom_Preset
Daves Arrow
- ID: 100007
- Script Attached: JFW_Custom_Destroy_Object
Ore Truck Spawner
- ID: 100009
- Name: Soccer Spawner
- Script Attached: None
Ore Truck (Ball)
- ID: 1000000008
- Name: CnC_Ore_Truck
- Script Attached: JFW_Give_Points_On_Death
Script Parameters
JFW_Zone_Send_Custom_Preset
- ID: 100007
- EnterMessage: 123
- EnterParam: 1
- ExitMessage: 0
- ExitParam: 0
- Player_Type: 2
- Preset_Name: CnC_Ore_Truck
JFW_Custom_Destroy_Object
- Message: 123
- ID: 1000000008
JFW_Give_Points_On_Death
- Points: 1.00
- Player_Type: 2
- Whole_Team: 0
The problem is the "ball" isn't blowing up.
WOL: - davrulezz
- dkracing0
|
|
|
Combination of scripts required [message #79011] |
Mon, 12 April 2004 01:31 |
|
try replacing JFW_Custom_Destroy_Object with JFW_Blow_Up_On_Custom.
This will make an explosion at the location of the zone (you can select which one).
Hope that works.
Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
|
|
|