Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Beacon creates objects
Re: Beacon creates objects [message #283497 is a reply to message #283061] Mon, 10 September 2007 16:52 Go to previous messageGo to previous message
wittebolx is currently offline  wittebolx
Messages: 332
Registered: May 2007
Location: the netherlands
Karma:
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.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drop Mods
Next Topic: Someone want to take over where I left off?
Goto Forum:
  


Current Time: Tue Feb 18 14:20:54 MST 2025

Total time taken to generate the page: 0.00721 seconds