Need help using the SET_TARGET_COMMAND

For all the help you need with Armagetron!
Post Reply
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Need help using the SET_TARGET_COMMAND

Post by LOVER$BOY »

Hello everyone!

I have a problem using my SET_TARGET_COMMAND console command in my server in LAN Game.

Here are my blocked zones, trigger zones and set_target_command:

#### Zones to be collapsed once triggered by entering the respective zones

Code: Select all

DELAY_COMMAND -1 SPAWN_ZONE n block1_entrance death 760 -640 8 0 0 0 true 15 0 0 8
DELAY_COMMAND -1 SPAWN_ZONE n block1_hall death 760 -736 08 0 0 0 true 15 0 0 08
DELAY_COMMAND -1 SPAWN_ZONE n block1_part2 death 752 -856 11 0 0 0 true 15 0 0 11
#### Triggering Zones

Code: Select all

DELAY_COMMAND -1 SPAWN_ZONE n trigger1_block1 target 840 -888 6 0 0 0 true 0 15 15 0 6
DELAY_COMMAND -1 SPAWN_ZONE n block1_trigger_part2 target 776 -696 6 0 0 0 true 0 15 15 6
DELAY_COMMAND -1 SPAWN_ZONE n block1_trigger_hall target 744 -696 6 0 0 0 true 0 15 15 6
#### Triggering Command

Code: Select all

DELAY_COMMAND 1 SET_TARGET_COMMAND trigger1_block1 onenter new collapse_zone block1_entrance
DELAY_COMMAND 1 SET_TARGET_COMMAND block1_trigger_part2 onenter new collapse_zone block1_part2
DELAY_COMMAND 1 SET_TARGET_COMMAND block1_trigger_hall onenter new collapse_zone block1_hall
Is there something wrong I'm doing here because I can collapse the blocks manually but for some reason, I can't collapse them using the trigger command :/

Many thanks in advance!
Image
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1975
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Need help using the SET_TARGET_COMMAND

Post by kyle »

Code: Select all

DELAY_COMMAND 1 SET_TARGET_COMMAND trigger1_block1 onenter collapse_zone block1_entrance
DELAY_COMMAND 1 SET_TARGET_COMMAND block1_trigger_part2 onenter collapse_zone block1_part2
DELAY_COMMAND 1 SET_TARGET_COMMAND block1_trigger_hall onenter collapse_zone block1_hall
try it this way I am not 100% sure it will work, But if i am reading the code right it should
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help using the SET_TARGET_COMMAND

Post by LOVER$BOY »

OH! Hey kyle!

Yes I tried that, taking out the "new", but strangely nothing happened :/

Is it something to do with the access_level or something else?
Image
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1975
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Need help using the SET_TARGET_COMMAND

Post by kyle »

I don't know for sure, I'll have to look into that code some more. that is one bit have not completely figure out how it all works yet. But it could be something to do with access levels.
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help using the SET_TARGET_COMMAND

Post by LOVER$BOY »

Well I gave the ACCESS_LEVEL COLLAPSE_ZONE 20 but still nothing happens :S
Image
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1975
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Need help using the SET_TARGET_COMMAND

Post by kyle »

I've been quite busy with some other arma stuff, I'll try to dig into it the SET_TARGET_COMMAND deeper by the end of the week.
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help using the SET_TARGET_COMMAND

Post by LOVER$BOY »

That'll be very great! Thanks kyle! ;)
Image
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1975
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Need help using the SET_TARGET_COMMAND

Post by kyle »

I thought there was a bug, but it was actually your SPAWN_ZONE that was making things mes up. Also the SET_TARGET_COMMAND was slightly off, but it's correction is what i said earlier. What was wrong with your spawn_zone was that you set the very last parameter which is the final radius, this is the radius it will grow or shrink to. when you collapse the zone it does not think it needs to shrink anymore since it is already at it's final radius. however if you run the collapse_zone twice it will shrink that is why it worked by command, but not by the target zone.

as for SET_TARGET_COMMAND, the "new" should not be in there at all and if you want to add another command to it you would do something like

Code: Select all

SET_TARGET_COMMAND block1_trigger_hall add onenter SPAWN_ZONE n block2_entrance death 800 -640 8 0 0 0 true 15 0 0 
Here is what your settings should be
#### Zones to be collapsed once triggered by entering the respective zones

Code: Select all

DELAY_COMMAND -1 SPAWN_ZONE n block1_entrance death 760 -640 8 0 0 0 true 15 0 0 
DELAY_COMMAND -1 SPAWN_ZONE n block1_hall death 760 -736 08 0 0 0 true 15 0 0 
DELAY_COMMAND -1 SPAWN_ZONE n block1_part2 death 752 -856 11 0 0 0 true 15 0 0 
#### Triggering Command

Code: Select all

DELAY_COMMAND 1 SET_TARGET_COMMAND trigger1_block1 onenter collapse_zone block1_entrance
DELAY_COMMAND 1 SET_TARGET_COMMAND block1_trigger_part2 onenter collapse_zone block1_part2
DELAY_COMMAND 1 SET_TARGET_COMMAND block1_trigger_hall onenter collapse_zone block1_hall
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help using the SET_TARGET_COMMAND

Post by LOVER$BOY »

Oh cool!

Thanks kyle :)
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help using the SET_TARGET_COMMAND

Post by LOVER$BOY »

mmm... kyle I tried that but it didn't work :(

nothing happens when i enter the trigger zone :(
Image
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1975
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Need help using the SET_TARGET_COMMAND

Post by kyle »

i guess i'd have to see map and settings, because it all worked fine for me when testing.
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Need help using the SET_TARGET_COMMAND

Post by LOVER$BOY »

I don't know kyle... :P

Ok the collapse_zone isn't working but when i tried testing with the other commands, they work fine... i'm not sure what's the matter with them :/

So now i'm using SET_ZONE_EXPANSION to -1000 and it's working :D

I'm running 0.2.9 server b.t.w
Image
Post Reply