OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Arctic on 24 Aug 2002, 23:14:11

Title: Blow up satchel charges during intro & XMS name
Post by: Arctic on 24 Aug 2002, 23:14:11
I need some satchel charges to blow up in my intro! I have the AI placing the bombs, but I am just puzzled as to how to make the bombs blow up when I want them to! Any suggestions?

------
I also can't figure out what the XMS is called in the game and what its ammo is. I have tried "XMS" but I get a CTD  >:( .

--------------
Thanks! (Its my first post on the new board!)
Title: Re:Blow up satchel charges during intro & XMS name
Post by: seanver on 25 Aug 2002, 00:03:49
I asked this some weeks ago. The better you can do is to create a shell at the position you want to blow up.

boom = "HEAT125" camcreate getpos gamelogic

You can create a gamelogic over the thing (or things) you want to blow up, name it and put its name instead of gamelogic or put instead of gamelogic the name of the thing you want to blow up.

About the XMS I have no idea since I had to format my HD and lost a list I had. Try with XM-177S
Title: Re:Blow up satchel charges during intro & XMS name
Post by: Messiah on 25 Aug 2002, 00:08:55
or make them blow it up using a action command:

not sure but this is my guess:

unitname action ["touch off"]

maybe this should be in the general editing section?

:thumbsup:
Title: Re:Blow up satchel charges during intro & XMS name
Post by: seanver on 25 Aug 2002, 00:11:25
Hmmm to blow up the charges they must be planted before I think
Title: Re:Blow up satchel charges during intro & XMS name
Post by: Arctic on 25 Aug 2002, 00:24:04
Ok, sorry about that. I thought this sounded like a cutscene topic b/c it had to do with blowing up the bomb in an intro.

BTW, the unitname action ["touchoff"] command worked.

Title: Re:Blow up satchel charges during intro & XMS name
Post by: seanver on 25 Aug 2002, 00:32:19
Then this stupid, pathetic and ugly insect was wrong. I'm great... I mean... a fool!!!
Title: Re:Blow up satchel charges during intro & XMS name
Post by: Messiah on 25 Aug 2002, 00:32:45
aaaah cool - i can never remember whether u put a space or not.

:thumbsup:
Title: Re:Blow up satchel charges during intro & XMS name
Post by: icarus_uk on 25 Aug 2002, 01:50:51
The XMS is just plain ol' "M4".  The same as the ammo.
Title: Re:Blow up satchel charges during intro & XMS name
Post by: Sefe on 26 Aug 2002, 13:52:54
To make the AI plant a satchel, write:

UnitName Fire ["Put", "PipeBomb", "PipeBomb"]

To touch it off:

UnitName Action ["TOUCH OFF"]
Title: Re:Blow up satchel charges during intro & XMS name
Post by: mikeb on 26 Aug 2002, 14:32:15
The XMS ammo is M4 but the weapon is XMS - difference being iron sights or scope.
Title: Re:Blow up satchel charges during intro & XMS name
Post by: Pow3r on 26 Aug 2002, 23:05:12
i put the first part into the init field for the unit and he plants it but putting  a comma and then the second part does not make him set it off... how would I do it the way that i'm trying to... using the init field of the unit instead of a script or whatever??  
Title: Re:Blow up satchel charges during intro & XMS name
Post by: asmodeus on 27 Aug 2002, 12:55:49
Hey there Pow3r!!  

Quote
i put the first part into the init field for the unit and he plants it but putting  a comma and then the second part does not make him set it off...

Well, if you really mean a comma ,  you need to instead use a semi colon ; to seperate the commands.  :thumbsup:

Hope that helps!   ;)


****EDIT*****

Oh yeah...  BTW...  If you are really gonna put those commands together in the same init field... Your guy is gonna have to be identified by his dental records!   :o  

I recommend making a trigger set off however you like with the
UnitName Action ["TOUCH OFF"]  
command in the init field (or is it on activation?) anyways, it's one of those two!  (lemme know if you need more help)   ;D

L8
Title: Re:Blow up satchel charges during intro & XMS name
Post by: Pow3r on 27 Aug 2002, 19:19:39
 ;D   Thanks much I'll try that.   ;)