Jump to content
  • 0

Base Building Eviction Notice Sign?


choppra

Question

Has anyone here every created a custom buildable item?

 

I want to create a Eviction notice sign for bases that violate rules.

 

Often we end up just blocking off the base and they just quit the server thinking someone took it over or they pick the lock and get back in.

 

I created a custom image that says to speak to an admin about their current base but I want to know what would be the best way to add it in game.

 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

save as an sqf file and use this with fn_selfactions if you have custom ones:

_object = createVehicle ['SignM_FARP_Winchester_EP1', [0,0,0], [], 0, 'CAN_COLLIDE']; //billboard
_object setVehicleInit 'this setObjectTexture [0,''custom\evictionSign.paa''];'; //PAA image
_object attachTo [player, [0,2,0]]; //attach 2m in front of you
sleep 5; //5 seconds to reposition
_object detach; //detach

It will not persist trough restart, altho I don't see how it would work anyway. Even if you saved it to database, texture would dissapear.

Link to comment
Share on other sites

  • 0

save as an sqf file and use this with fn_selfactions if you have custom ones:

_object = createVehicle ['SignM_FARP_Winchester_EP1', [0,0,0], [], 0, 'CAN_COLLIDE']; //billboard
_object setVehicleInit 'this setObjectTexture [0,''custom\evictionSign.paa''];'; //PAA image
_object attachTo [player, [0,2,0]]; //attach 2m in front of you
sleep 5; //5 seconds to reposition
_object detach; //detach

It will not persist trough restart, altho I don't see how it would work anyway. Even if you saved it to database, texture would dissapear.

 

How about...

 

Save to the DB, save the object texture file name in the inventory of the item, on server load, read the texture file and re apply before placing in the world ?.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...