Home   Help Search Login Register  

Author Topic: Making a shilka fire at a certain range  (Read 1800 times)

0 Members and 1 Guest are viewing this topic.

jethind

  • Guest
Making a shilka fire at a certain range
« on: 26 Aug 2002, 03:00:38 »
How do i make shilka's fire at a certain range. Like for example, the shilka will not fire at you or any other units until your 500 meters near to it? Thanks a lot.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Making a shilka fire at a certain range
« Reply #1 on: 26 Aug 2002, 03:18:32 »
make a trigger 500 in diamtre and put the shilka in the middle - set the shilaks combat to never fire and make the trigger activated by west or the player...

then in the onactivation line type:

shilkaname setcombatmode "red"

and he will start to fire...

also to make this happen alkl the time then set the trigger to repeatedly and also add this to the on deactivation line:

shilkaname setcombatmode "green"

or i think its green for never fire - look it up in the comman reference.

:thumbsup:
Proud Member of the Volunteer Commando Battalion

seanver

  • Guest
Re:Making a shilka fire at a certain range
« Reply #2 on: 26 Aug 2002, 03:41:11 »
Blue, and the unit won't fire. With green it will "hold fire". Don't know if they are the same.

jethind

  • Guest
Re:Making a shilka fire at a certain range
« Reply #3 on: 26 Aug 2002, 04:10:01 »
How do i make it activated by player then?

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Making a shilka fire at a certain range
« Reply #4 on: 26 Aug 2002, 04:30:19 »
You could setup a trigger (anywhere on the map)
range (not important) 0/0

condition: player distance shilkaname < 500

Or you use the method from the replies above and group the trigger
to with the player (press F2 and drag a line from player to trigger)

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Making a shilka fire at a certain range
« Reply #5 on: 26 Aug 2002, 12:37:37 »
to make the trigger activated by the player, group it with the trigger (F2) so there is a light blue line from the player to the trigger - then it will only be activated by him.
Proud Member of the Volunteer Commando Battalion

jethind

  • Guest
Re:Making a shilka fire at a certain range
« Reply #6 on: 26 Aug 2002, 14:06:12 »
Hey thanks. I'll try that suggestion.  :)