Jump to content

fx_runner question


Maui

Recommended Posts

Posted

Is it possible to show/hide fx_runners ?

Say like, I've got a clan tag which I want to hide/show with a button.. how would I do that?

 

I've tried target_activate and deactivate (combined with a script, used the same script for enable/disable a teleport. New script is edited though) but those don't work.

 

What else could I do?

Posted

That was the idea.  Here's my code:

{
"classname" "trigger_multiple"
"model" "*8"
"target" "lockTags"
"origin" "87941 10153 -87268"
"spawnflags" "261"
"wait" "4"
}
{
"classname" "target_scriptrunner"
"targetname" "lockTags"
"usescript" "useTags"
"count" "-1"
"target" "useTags1"
"parm1" "0"
}
{
"targetname" "lockTags"
"target" "useTags1"
"classname" "target_deactivate"
}
{
"targetname" "unlockTags"
"target" "useTags1"
"classname" "target_activate"
}
{
"classname" "target_print"
"targetname" "lockTagsmsg"
"message" "^1Clan Tags\n^3Deactivated"
"wait" "750"
}
{
"classname" "target_print"
"targetname" "unlockTagsmsg"
"message" "^1Clan Tags\n^3Enabled"
"wait" "750"
}

All fx_runners have targetname useTags1

Posted

You don't need a target_activate or target_deactivate, just use the fx_runner set with startoff spawnflag and it should trigger on / off by itself.

I don't want it to be set on or off by itself. I want a button to do so.

Posted

What I meant was that when you USE the fx_runner (NOT the target_activate or target_deactivate) the effect will trigger on and off, without the need for strange activators.

Asgarath83 likes this
Posted

Is sufficient a trigger multiple that run a script that use the fx_runner targetname with startoff spawnflags. :)

@@Ramikad is right. :)

 

Or simply, a trigger_multiple entity connected to a startoff fx_runner. with use_button spawnflag and a good wait amount. ;)

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
×
×
  • Create New...