OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Killzone 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.
-
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
-
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!
-
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 (http://www.ofpec.com/yabbse/index.php?board=10;action=display;threadid=22177)
+ 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 :'(
-
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
-
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
-
:)
I just misinterpreted that 'good luck!' at the end then, which to me sounded highly sarcastic ;) :P