OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Arctic on 24 May 2003, 18:51:04
-
Is there a CutRsc command for a sniper scope?
-
I don't belive so, but perhaps, what you need is a Sniper Scope on your screen, like the one from the cutscene of Resistance, right? Then:
MySniper SwitchCamera "gunner"
Notice that string might be wrong, try something between "gunner" and "optics".
Hope this helps you! ;)
-
or u make it like guys of bis:
u add this in description.ext:
#define CT_OBJECT 80
class RscObject
{
type = CT_OBJECT;
scale = 1.0;
direction[] = {0, 0, 1};
up[] = {0, 1, 0};
};
class RscTitles {
titles[] = {Dragunov};
class Dragunov {
idd=-1;
movingEnable = false;
duration=100;
name = "binocular";
objects[]= {binocular};
class binocular : RscObject {
model= "\O\Guns\opt_snip_noflash.p3d";
idc= -1;
position[] = {0,0,0.063};
direction[] = {sin 0, sin 180 * cos 0, cos 180 * cos 0};
up[] = {0, cos 180, -sin 180};
};
};
};
and then u can open it with CutRsc ["Dragunov","Plain Down"]
and if u dont want to have the dragunov, u have to change this line in description.ext:
model= "\O\Guns\opt_snip_noflash.p3d"; to e.g. model= "\BAS_Weap\Optics\BAS_M24SWSSight.p3d"; (this is the m24sws by bas)
-
Hey
For that: MySniper SwitchCamera "gunner"
Where about's in the script would I put that and how would I get it off ?
O'Neil
PS: MySniper Switchcamera "Defult" ?