Jump to content
Sign in to follow this  
Daniel

How do you disable an action menu option

Recommended Posts

I'm using the 3wx street lamps cause they have a nice atmospheric glow and flicker to them. The only problem is that once activated, the player has a "put out fire" option. Is there a way to remove this option?

Thanks,

Daniel smile_o.gif

Share this post


Link to post
Share on other sites

I don't know much about addon making but if it's related to fire in it's config it'll always show this obligatory option.

Try to find another lamp addon without these option. Depbo both and find the difference. Create your own customized lamp addon. But for me it looks like the "atmospheric glow and flicker" will be bound to fires.

Share this post


Link to post
Share on other sites

In the config for class light, BIS use a vertex to set the position of the light source.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class Light

{

Shape="koulesvetlo";

color[] = {1.0, 1.0, 1.0, 1.0};

ambient[] = {0.0, 0.0, 0.0, 0.0};

position = "ohniste";

size = 0.15;

brightness = 0.0;

};

It’s the…

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> position = " ohniste";

I think they also use the vertex to check for the proximity of the player, so the user action can be displayed. Because if you remove that vertex, you remove the user action.

But removing the vertex forces the light to appear in the middle of the object, so you may find yourself having to do some heavy scripting to get it in the correct position.

It might be worth while, renaming the vertext in O2, to see if the light fire action responds to the hardcoded vertex name? But it probably works off whatever is used for position sad_o.gif

Share this post


Link to post
Share on other sites

Just an idea.

Can you surround these lights with fences, bushes or whatever you want so that player cannot get close enough to get the action shown?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×