Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » URGENT QUESTION!!!!!
URGENT QUESTION!!!!! [message #218364] Sat, 09 September 2006 20:23 Go to next message
Brandon is currently offline  Brandon
Messages: 282
Registered: August 2006
Location: United States
Karma: 0
Recruit
Ok, I need some serious help here. I'm making it so that you press a switch and $800 will be subtracted from your credits and you'll get a medium tank only... I can't seem to get the tank to appear. Dont Get It Does anyone know how to make this possible? What script(s) should I use?
Re: URGENT QUESTION!!!!! [message #218367 is a reply to message #218364] Sat, 09 September 2006 20:36 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

You will require bhs.dll on both the server and client for this to work (since walking up to an object and pressing E on it requires bhs.dll to work).
Assuming you have that, you can use the script JFW_Vehicle_Buy_Poke to do what you want.
Or if you just want it to appear without being constructed from a weapons factory etc, you can use JFW_Preset_Buy_Poke.


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
Re: URGENT QUESTION!!!!! [message #218371 is a reply to message #218364] Sat, 09 September 2006 21:15 Go to previous messageGo to next message
Brandon is currently offline  Brandon
Messages: 282
Registered: August 2006
Location: United States
Karma: 0
Recruit
Ok, I did that, so how do I get it on a bhs though? And once I do get it on the bhs then I just put it in the RenegadeFDS/Server folder?
Re: URGENT QUESTION!!!!! [message #218388 is a reply to message #218371] Sun, 10 September 2006 00:47 Go to previous messageGo to next message
LR01 is currently offline  LR01
Messages: 842
Registered: April 2006
Location: The Netherlands
Karma: 0
Colonel
Little question: how can this be done on zone?

Moding can be real Fun...
Re: URGENT QUESTION!!!!! [message #218441 is a reply to message #218364] Sun, 10 September 2006 05:09 Go to previous messageGo to next message
sycar is currently offline  sycar
Messages: 144
Registered: February 2006
Location: Reading, UK
Karma: 0
Recruit
im unsure if theres a current script for this on a zone, but if you dont mind using a custom scripts.dll i can paste the code which will do this for you?
Re: URGENT QUESTION!!!!! [message #218442 is a reply to message #218364] Sun, 10 September 2006 05:10 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
what is so urgent? im sure it can be done in scripts.dll
Re: URGENT QUESTION!!!!! [message #218458 is a reply to message #218364] Sun, 10 September 2006 06:52 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
It's all done in level edit and saved, then you place the .ldd of the map in the data folder and run the .mix normally.
Re: URGENT QUESTION!!!!! [message #218475 is a reply to message #218458] Sun, 10 September 2006 08:51 Go to previous messageGo to next message
LR01 is currently offline  LR01
Messages: 842
Registered: April 2006
Location: The Netherlands
Karma: 0
Colonel
the zone is done on some servers

doesn't a script like: Send_Custom_On_Enter_Zone exists?


Moding can be real Fun...
Re: URGENT QUESTION!!!!! [message #218492 is a reply to message #218364] Sun, 10 September 2006 10:25 Go to previous messageGo to next message
ghost is currently offline  ghost
Messages: 437
Registered: May 2005
Location: California
Karma: 0
Commander
I added this to my server and it would tend to crash the server. Isnt it true if non "corepatch" users press on the switch it crashes the server?

http://img287.imageshack.us/img287/9936/davesigea4rw5.png
Please visit my forums at: RenForce
Creator of the CrazyAOW Mod
Re: URGENT QUESTION!!!!! [message #218508 is a reply to message #218492] Sun, 10 September 2006 11:26 Go to previous messageGo to next message
LR01 is currently offline  LR01
Messages: 842
Registered: April 2006
Location: The Netherlands
Karma: 0
Colonel
does it exists?


and the corepatch, if non corepatch poke, they dont (after my experience) crash


Moding can be real Fun...
Re: URGENT QUESTION!!!!! [message #218539 is a reply to message #218364] Sun, 10 September 2006 13:32 Go to previous messageGo to next message
Brandon is currently offline  Brandon
Messages: 282
Registered: August 2006
Location: United States
Karma: 0
Recruit
Ok, I've got the whole BHS thing in my script folder. I redid the map but when I load my server it loads as far as 51% and then crashes. All I did after modifying the map was put the M13.ldd, scripts.dll, scripts2.dll, and bhs.dll in the RenegadeFDS/Server folder (M13.ldd went into Server/Data folder). Yes, you can do it with a script zone (dropping vehicles that is) but I just want to buy one using a switch (poke switch and it subtracts money and a tank is dropped or appears at the location specified).

EDIT: I tried to get the map to work but it won't. I thought it was when I put the bhs and scripts in the server folder that caused the problem but it wasn't. Will SSAOW 1.5 let you add fully functional switches that do stuff to maps? Or is it like the whole AI bot thing, it just won't work?

[Updated on: Sun, 10 September 2006 14:07]

Report message to a moderator

Re: URGENT QUESTION!!!!! [message #218849 is a reply to message #218364] Mon, 11 September 2006 15:51 Go to previous message
Brandon is currently offline  Brandon
Messages: 282
Registered: August 2006
Location: United States
Karma: 0
Recruit
Never mind, problem was I was using the wrong Guard Towers and they crashed the map. Everything works perfectly now! Big Grin
Previous Topic: [Answered] scripts.dll -> current map number?
Next Topic: RengadeEx Error Help!
Goto Forum:
  


Current Time: Wed Dec 25 08:33:54 MST 2024

Total time taken to generate the page: 0.00956 seconds