Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » create a sub-base defence?
create a sub-base defence? [message #235526] Fri, 22 December 2006 21:22 Go to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
im sorry for all the questions (don't worry, it will pay off)

i need to know (script wise) how to create a sub base defence that operates for the team. like for nod you get the turrets.

i have seen this on some server and would like to know how to do it myself, i want the turret/gaurd tower to drop where the player is standing. i just need to know how ot do it. i assume it would be

GameObject *Create_Building(const char *preset,const Vector3 & Position);

but thats all i know.
Re: create a sub-base defence? [message #235557 is a reply to message #235526] Sat, 23 December 2006 06:14 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
turrets / guard towers are just vehicles with jfw_base_defense script on them, not actual buildings

http://steamsignature.com/card/1/76561197975867233.png
Re: create a sub-base defence? [message #235564 is a reply to message #235526] Sat, 23 December 2006 07:40 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)
how would i spawn one?
Re: create a sub-base defence? [message #235565 is a reply to message #235526] Sat, 23 December 2006 08:10 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Create_Vehicle should be able to do it, as long as the preset exists in always.dat, or the maps .mix file.

http://steamsignature.com/card/1/76561197975867233.png
Re: create a sub-base defence? [message #235572 is a reply to message #235526] Sat, 23 December 2006 08:56 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)
dont i have to tell it what base to defend? and such...
Re: create a sub-base defence? [message #235573 is a reply to message #235526] Sat, 23 December 2006 09:07 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Thats controlled by the presets team setting.

http://steamsignature.com/card/1/76561197975867233.png
Re: create a sub-base defence? [message #235578 is a reply to message #235526] Sat, 23 December 2006 10:03 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)
Quote:

Team says which sides factories to create it at


i need it to spawn at an offset to a gameobj. is this possible?
Re: create a sub-base defence? [message #235581 is a reply to message #235526] Sat, 23 December 2006 10:36 Go to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
use getPos on the gameobject your starting from, adjust the xyz coordinates on the Vector3 you get back, and then use that as your spawning point.

(its either getPos or getPosition, can't remember exactly which, but it returns a Vector3)


http://steamsignature.com/card/1/76561197975867233.png
Previous Topic: Old Beta Sniper Rifle
Next Topic: send custom on vehicle enter
Goto Forum:
  


Current Time: Sun Nov 17 04:28:05 MST 2024

Total time taken to generate the page: 0.00850 seconds