OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods Beta Testing => Topic started by: jackass888 on 28 Jul 2005, 17:36:49
-
I need to make a OPR nuke scud launch. The readme says [<Target position>,<scud launcher>] exec "\OPR_Scud_B\OPR_Scripts\launch_Nuke.sqs" to put into activation field but with the <> it doesnt work at all.
I tried this: [Target1,scud1r] exec "\OPR_Scud_B\OPR_Scripts\launch_Nuke.sqs" but it gives 2 errors and the scud rocket appears on the scudlauncher after some time. Whats wrong?
-
I think you should use something like this:
(assuming that Target1 is an object's name)
[getPos Target1, scud1r] exec "\OPR_Scud_B\OPR_Scripts\launch_Nuke.sqs"
-
so it doesnt do anything at all :-\
-
Hmm.
<target position> obviously asks for a position to be passed for the script. <scud launcher> obviously asks for a scud launcher to be passed for the script. If scud1r is the name of your scud launcher and Target1 is the name of an object which is used to mark the target, then
[getPos Target1, scud1r] exec "\OPR_Scud_B\OPR_Scripts\launch_Nuke.sqs"should be good. There is nothing wrong in this if the situation is like mentioned above.
Check the names of your objects and also be sure that you don't have variables named with the same name as the scud or the target object.
And what is Target1?
-
with the getpos the scud doesnt do anything at all :( And target1 is a empty jeep for example. Maybe a bug with the addon??
-
with the getpos the scud doesnt do anything at all :( And target1 is a empty jeep for example. Maybe a bug with the addon??
A bug in the addon for sure. I tested it and the Nuke Scud only works when the player is in the Scud launcher. Try it like that and you'll see. If there's an AI loon in the scud, it doesn't work.
But the HE Scud works without the player in it.
The code:
[getPos Target1, scud1r] exec "\OPR_Scud_B\OPR_Scripts\launch_Nuke.sqs"
is correct.
If you have the patience to do it, you can open the OPR_Scud_B.pbo and fix the scripts in it.
The PBO Decryptor:
http://www.ofpec.com/includes/download2.php?id=269 (http://www.ofpec.com/includes/download2.php?id=269)
is good for opening PBO files. Good luck!
:)