Home   Help Search Login Register  

Author Topic: individual Satchel Charges?  (Read 1028 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
individual Satchel Charges?
« on: 11 Aug 2005, 16:29:08 »
I dont know if this has ever been attempted but would it be possible to lay down your satchels and then have contol over each one instead of having to explode them all together? Could this be done with a script?

I have used the script by Hammy but it does not have this option.

"Everyone dies so deal with it and move on"

                                                      ME

Offline Blanco

  • Former Staff
  • ****
Re:individual Satchel Charges?
« Reply #1 on: 11 Aug 2005, 17:13:33 »
Interesting idea...

You can check with a "fired" eventhandler when the player puts one down, delete it and replace it with the satchel model from GB's  editorupgrade. Classname is AAA807
Then add an action to the player to detonate (and remove it again when the player is out of range). When you click the action simply create an explosion at the fake satchel's position.
When the player comes close add a fake action  to defuse it delete the fake satchel and add a satchel to the player's inventory. The player shouldn't know his dealing with fake satchels :)

PS : When you place a satchel object on the map you will be able to board it, because it's a vehicle. Simply locking the satchel should solve this problem. (maybe set his fuel to 0 too)

Ok, that's all theory, I'm sure a lot of other difficulties will show up when you try to write that script...
Passing the names from the created satchel objects in the action script are a problem...



:P
« Last Edit: 11 Aug 2005, 17:26:49 by Blanco »
Search or search or search before you ask.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:individual Satchel Charges?
« Reply #2 on: 12 Aug 2005, 03:42:31 »
you don't need addons, just camcreate a "pipebomb"

the problem is how do you know which one you're setting off?

you would need global arrays and format and lots of annoying crap. good luck!


Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:individual Satchel Charges?
« Reply #3 on: 12 Aug 2005, 15:04:38 »
Quote
the problem is how do you know which one you're setting off?

you would need global arrays and format and lots of annoying crap. good luck!
*pffft*

Properties for objects by Fragorl
+ some coding + twisted brain, monitor, keyboard, table and any other object near you because of insanely crappy and BISd addAction function = finished product...

I would have done this sometime ago already, but just don't have the time to do it :'(
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:individual Satchel Charges?
« Reply #4 on: 12 Aug 2005, 17:32:29 »
I could not figure out how to set off camcreated satchels I tried "touchoff" I used the put command to place them. ( this did not work unless it was a squad member doing it) So the only way I could do was to explode shells at the location of the satchels and delete the satchels. I have included an example mission to show. I have a feeling there is a much better way to do this. Give it a try and let me know what you think.  I am addicted to scripting even if all I know is very limited  ;D

"Everyone dies so deal with it and move on"

                                                      ME

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:individual Satchel Charges?
« Reply #5 on: 12 Aug 2005, 21:40:00 »
you would need to camcreate an lgb at the satchels location

@HateR
thats the exact stuff i said you needed, i didn't say someone else hadn't made a function for it.... lol

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:individual Satchel Charges?
« Reply #6 on: 17 Aug 2005, 08:12:55 »
:)

I just misinterpreted that 'good luck!' at the end then, which to me sounded highly sarcastic ;) :P
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.