[EPOCH] Custom Building Signs

DylanHolmes

New Member
This code from this thread

Code:
/*
  File Name: FSign.sqf
  File Created: 2/9/2014
  File Version: 1.0
  File Author: Foamy
  File Last Edit Date: 2/9/2014
  File Description: Adds "Sign" Objects to world.
*/
// Add Signs Below this Line
// Sign Location <--- change to your loc
  _this = createVehicle ["WarfareBunkerSign", [0000.0000, 0000.0000], [], 0, "CAN_COLLIDE"];
  _sign1 = _this;
  _this setDir 0.00;
  _this setVehicleInit "this SetObjectTexture [0,""addons\Images\FSign\test_sign_512x512.jpg""]";
  _this setPos [0000.0000, 0000.0000];

Would there be anyway to allow player's to craft a sign with lumber then upon placing it they are prompted with a textbox that they can enter X amount of text. Then upon pressing okay, it puts the text they entered on the sign onto the sign they crafted. That way you can have warning signs around bases and such?
 
This code from this thread

Would there be anyway to allow player's to craft a sign with lumber then upon placing it they are prompted with a textbox that they can enter X amount of text. Then upon pressing okay, it puts the text they entered on the sign onto the sign they crafted. That way you can have warning signs around bases and such?

Its possible in theory, but it would be pretty advanced. The right click menus can be added using Maca's extended RC, and the user text can be captured and made a string, and you should be able to change the text, although I'm not sure if you can change text on a sign without using an image. On top of that, you would them have to figure out how to write to a custom table in the database for the signs, or how to sneak it into the Object_data table and be tied to the sign.

So all in all it would be very complex to do for little use when server admins can add custom signs themselves already without needing someone to figure out how to do this in code.
 
Back
Top