Home   Help Search Login Register  

Author Topic: Setting Carbombs  (Read 436 times)

0 Members and 1 Guest are viewing this topic.

Homefry31464

  • Guest
Setting Carbombs
« on: 07 Mar 2003, 02:29:14 »
I have found a few carbomb scripts, but you have to call the script in the init field. Is there a way to make this an action when you get near a vehicle?

Offline Kuro

  • Former Staff
  • ****
  • 2./FschJgBtl 251 Green Devils
    • VBS2 Mission Download Site
Re:Setting Carbombs
« Reply #1 on: 07 Mar 2003, 04:06:29 »
Hello,

should be no problem: Example is the init line should be [this,60] exec "carbomb.sqs"  . Meaning "this" car should explode in 60 seconds. You have to do the following.

Give the car a name (under the unit proberties, for this example "car1") then make a trigger (radius 100 e.g.). Write in the trigger On activation [car1,60] exec "carbomb.sqs"

Greetings
Kuro

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Setting Carbombs
« Reply #2 on: 07 Mar 2003, 12:53:41 »
he wanted action :P like da addaction command

make a repatable triger like dat

condition : (unitname distance carname < 2) and (alive carname)
onactivision : setcarbomb = carname addaction ["Set Car Bomb","setcarbomb.sqs"]
on deactivision : unitname removeaction  setcarbomb

make a script named

setcarbomb.sqs

in da script put da line 2 activate da bomb ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta