I'm working on an objective map, and on the route to one of the objectives, I have a wall that is blocking access to one of the less difficult paths to assault. I have a script_object functioning as a bomb to blow the wall up. Now, here's the question- Is there any way that I can make it so that only the Allies can use the trigger_use to blow the wall up? The only similar option I could find was the 'NOT_PLAYERS' box in the entity inspector window, but that obviously won't work.
I have the bomb on the wall scripted separatelyfrom the objective scripting. Would it be easier for me to make the wall another objective and not include it in the number of targets to destroy?
I'm not very good with scripts yet, so I'm sorry if I don't make any sense or if this question comes off as extremely stupid. I'd just like some input.
A question about trigger_use
Moderator: Moderators
- Axion
- Major General
- Posts: 683
- Joined: Mon Sep 29, 2003 5:14 am
- Location: Northern California
- Contact:
A question about trigger_use
"The work of a thousand years is nothing but rubble."
- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9

- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9

-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
at the start of the script use
team_check:
if (parm.other.dmteam == "allies") //or axis depending on team
{thread "named_thread"
$bomb_trigger_name nottriggerable}
change "named_thread" for the thread you've created
change $bomb_trigger_name to the name you've created
any problems post your script
team_check:
if (parm.other.dmteam == "allies") //or axis depending on team
{thread "named_thread"
$bomb_trigger_name nottriggerable}
change "named_thread" for the thread you've created
change $bomb_trigger_name to the name you've created
any problems post your script
hope this helps, prob not cos it's all foreign 2 me :-/
- Axion
- Major General
- Posts: 683
- Joined: Mon Sep 29, 2003 5:14 am
- Location: Northern California
- Contact:
Awesome, thanks a lot!

"The work of a thousand years is nothing but rubble."
- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9

- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9

- Axion
- Major General
- Posts: 683
- Joined: Mon Sep 29, 2003 5:14 am
- Location: Northern California
- Contact:
Yeah, that clarified it for me. Well, it''s good to know that I have several methods at my disposal.
Thanks!
Thanks!
"The work of a thousand years is nothing but rubble."
- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9

- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9
