Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Beacon creates objects
Beacon creates objects [message #283061] Fri, 07 September 2007 22:19 Go to next message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
On L4BORATORY@hotmail.com (W4RNING'S server) he has it so when you type in something, a bot creates an object in front of you. I'm trying to replicate this with DAK_Vehicle_Regen and TFX_Replace_When_Repaired on a beacon. The only problem is that i can only align the objects along the Z axis (drop height option for the script). How can i modify its position relative to where it was dropped on the x & y axis'?
This is for a PKG.


WOL: Veyrdite Previously: Dthdealer ( a long time ago )

[Updated on: Fri, 07 September 2007 22:20]

Report message to a moderator

Re: Beacon creates objects [message #283062 is a reply to message #283061] Fri, 07 September 2007 22:21 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Dthdealer wrote on Sat, 08 September 2007 00:19

On L4BORATORY@hotmail.com (W4RNING'S server) he has it so when you type in something, a bot creates an object in front of you. I'm trying to replicate this with DAK_Vehicle_Regen and TFX_Replace_When_Repaired on a beacon. The only problem is that i can only align the objects along the Z axis (drop height option for the script). How can i modify its position relative to where it was dropped on the x & y axis'?
This is for a PKG.

Scripts.
I asked the same question a long time ago (before W4's server). I never really got someone to make me a script. :/
Re: Beacon creates objects [message #283063 is a reply to message #283061] Fri, 07 September 2007 22:29 Go to previous messageGo to next message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
But what scripts?
A long times ago is before a new scripts release.


WOL: Veyrdite Previously: Dthdealer ( a long time ago )
Re: Beacon creates objects [message #283110 is a reply to message #283063] Sat, 08 September 2007 06:20 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
He does it with C++ with SSGM I believe. So I don't think you can do it for a PKG unless your hosting it. Huh Unless somebody makes a script for you.

http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost

[Updated on: Sat, 08 September 2007 06:21]

Report message to a moderator

Re: Beacon creates objects [message #283219 is a reply to message #283061] Sat, 08 September 2007 21:50 Go to previous messageGo to next message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
I know he does it by coords of player in C++ (i talked that out of him) but i want to know if its possible with no server-siding (or C+ as i know nothing about it except Meteor 2's version) to create an object when the player uses a nuke or something similar.

BlueThen, did you create Virtual Legos?


WOL: Veyrdite Previously: Dthdealer ( a long time ago )
Re: Beacon creates objects [message #283224 is a reply to message #283219] Sat, 08 September 2007 22:43 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Dthdealer wrote on Sat, 08 September 2007 23:50


BlueThen, did you create Virtual Legos?

Yes. Smile
Re: Beacon creates objects [message #283289 is a reply to message #283224] Sun, 09 September 2007 09:38 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
Then I think you're looking for this. http://renhelp.net/index.php?mod=Tutorials&action=view&id=104

http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost
Re: Beacon creates objects [message #283303 is a reply to message #283061] Sun, 09 September 2007 11:48 Go to previous messageGo to next message
SWNight is currently offline  SWNight
Messages: 138
Registered: June 2006
Karma: 0
Recruit
Dthdealer wrote on Sat, 08 September 2007 00:19

On [email]L4BORATORY@hotmail.com[/email] (W4RNING'S server) he has it so when you type in something, a bot creates an object in front of you. I'm trying to replicate this with DAK_Vehicle_Regen and TFX_Replace_When_Repaired on a beacon. The only problem is that i can only align the objects along the Z axis (drop height option for the script). How can i modify its position relative to where it was dropped on the x & y axis'?
This is for a PKG.


Huh Dont Get It Sarcasm


cncnick13 wrote on Fri, 24 August 2007 23:05

ok but will it work for vista

Ryu wrote on Sat, 25 August 2007 00:31

No, It will make your pc explode!!11 The Bomb

cncnick13 wrote on Sat, 25 August 2007 00:32

what you mean

Jerad Gray wrote on Wed, 26 September 2007 10:00

too bad EA murdered Westwood.

http://img206.imageshack.us/img206/7905/swnightfi3.png
Re: Beacon creates objects [message #283305 is a reply to message #283303] Sun, 09 September 2007 12:02 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
I did make a script, but I couldn't figure out how to compile it. :/
Re: Beacon creates objects [message #283412 is a reply to message #283305] Mon, 10 September 2007 05:38 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3813
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
I'll try to remember to make a script that creates an object on chat command for my first release.

Re: Beacon creates objects [message #283420 is a reply to message #283061] Mon, 10 September 2007 08:28 Go to previous messageGo to next message
AoBfrost is currently offline  AoBfrost
Messages: 1248
Registered: March 2007
Karma: 0
General (1 Star)
Write the script when it hears the command "!command" (replace whatever you want after the !) Then make it look for the players location, and spawn a powerup/item infront of the player, you can also make it take money, but i forget how you do that.

http://i4.photobucket.com/albums/y133/FMAROCKS/godotsig.gif
Scrin wrote on Fri, 05 October 2007 12:19

''whoa im the photoshop''

KANE LIVES!!!

[Updated on: Mon, 10 September 2007 08:28]

Report message to a moderator

Re: Beacon creates objects [message #283497 is a reply to message #283061] Mon, 10 September 2007 16:52 Go to previous messageGo to next message
wittebolx is currently offline  wittebolx
Messages: 332
Registered: May 2007
Location: the netherlands
Karma: 0
Recruit
this is a code im using with Lua V2.

   	if Message == "!purchase recon" then
      			if Purchase_Item(Get_GameObj(pID), 300) == 1 then
         			local pos = Get_Position(Get_GameObj(pID))
      				X = 10*math.cos(Get_Facing(Get_GameObj(pID))*(math.pi / 180))
      				Y = 10*math.sin(Get_Facing(Get_GameObj(pID))*(math.pi / 180))
      				local pos2 = Vector3(X+pos:GetX(), Y+pos:GetY(), pos:GetZ() + 5)
         			Create_Object("Nod_Recon_Bike_Player", pos2)
				InputConsole("msg %s has bought a Recon Bike.", Get_Player_Name_By_ID(pID))
      			else
         		InputConsole("ppage %d You don't have enough money", pID)
      		end
   	end


you can change the preset to whatever you like.


Re: Beacon creates objects [message #284277 is a reply to message #283061] Thu, 13 September 2007 23:57 Go to previous messageGo to next message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
I don't wont to use Lua, c++ or anything as its only for a test map for my vehicles and new ideas so i can make terrain for them to go on.
I don't even have a dedicated server setup for those plug ins! Though can you use XCC to merge them into a pkg/mix? Mind you id have to learn an entirely new Language on top of Meteor 2's version of c++, Action script and html just for one test map

EDIT: Bluethen, i was going to ask you how you made multiple objects, but i worked out you just needed to add Duplicates of the replace on repair script.


WOL: Veyrdite Previously: Dthdealer ( a long time ago )

[Updated on: Fri, 14 September 2007 00:04]

Report message to a moderator

Re: Beacon creates objects [message #284329 is a reply to message #283061] Fri, 14 September 2007 08:50 Go to previous message
SWNight is currently offline  SWNight
Messages: 138
Registered: June 2006
Karma: 0
Recruit
All he wants is just a script that's like TFX_Replace_When_Repaired BUT that lets you add in X and Y values aswell, not just Z. He doesn't want to learn Lua or C++...

cncnick13 wrote on Fri, 24 August 2007 23:05

ok but will it work for vista

Ryu wrote on Sat, 25 August 2007 00:31

No, It will make your pc explode!!11 The Bomb

cncnick13 wrote on Sat, 25 August 2007 00:32

what you mean

Jerad Gray wrote on Wed, 26 September 2007 10:00

too bad EA murdered Westwood.

http://img206.imageshack.us/img206/7905/swnightfi3.png
Previous Topic: Drop Mods
Next Topic: Someone want to take over where I left off?
Goto Forum:
  


Current Time: Mon Dec 30 01:36:07 MST 2024

Total time taken to generate the page: 0.01707 seconds