OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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!)
-
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
-
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:
-
Hmmm to blow up the charges they must be planted before I think
-
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.
-
Then this stupid, pathetic and ugly insect was wrong. I'm great... I mean... a fool!!!
-
aaaah cool - i can never remember whether u put a space or not.
:thumbsup:
-
The XMS is just plain ol' "M4". The same as the ammo.
-
To make the AI plant a satchel, write:
UnitName Fire ["Put", "PipeBomb", "PipeBomb"]
To touch it off:
UnitName Action ["TOUCH OFF"]
-
The XMS ammo is M4 but the weapon is XMS - difference being iron sights or scope.
-
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??
-
Hey there Pow3r!!
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
-
;D Thanks much I'll try that. ;)