OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Atropin on 04 Aug 2005, 03:30:10

Title: Disable ECP DSAI
Post by: Atropin on 04 Aug 2005, 03:30:10
Hi!

Is this possible to disable and enable DSAI with any command in my .sqs file? I have a cutscene in a mission and my guys are speaking funny things like "Vodka!", or they sitdown and the camera cant see them anymore.... plz help me  :-[

P.S. Sry for my f...ing English
Title: Re:Disable ECP DSAI
Post by: Triggerhappy on 04 Aug 2005, 03:51:46
your english is about as good as it ever gets...
check the readme for ecp, theres a global variable or 2 that you'll have to set false
Title: Re:Disable ECP DSAI
Post by: MachoMan on 04 Aug 2005, 10:46:11
Just change one ECP variable like this:
Quote
ECP_public set [51,false];

This will switch DSAI off.
Title: Re:Disable ECP DSAI
Post by: Atropin on 04 Aug 2005, 11:12:05
thank u guys!

DSAI is now off in my cutscene  :)

But on the end of the .sqs it stay off?

Quote
ECP_public set [51, false ]
_camera = "camera" camCreate [50,50,50]
_camera cameraEffect ["internal","back"]
_camera camSetTarget [-29967.32,-67919.28,5.45]
_camera camSetPos [15943.03,20919.00,1.50]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
~2
_camera camSetTarget [71375.34,99264.70,-28078.64]
_camera camSetPos [15942.79,20915.90,1.74]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
Lol say "Funk2"
~15
_camera camSetTarget [100273.50,74657.86,5.84]
_camera camSetPos [15941.58,20916.56,1.56]
_camera camSetFOV 0.700
_camera camCommit 3
@camCommitted _camera
~1
Hammer say "Dia2z1"
~17
_camera camSetTarget [-43628.44,-59157.03,-6269.34]
_camera camSetPos [15941.34,20918.19,1.63]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
~1
Spieler say "Dia2z2"
~3
Spieler cameraeffect ["terminate","back"]
camDestroy _camera
losgehts = true
ECP_public set [51, true ]
Exit

Or i have done something wrong?

 ::)
Title: Re:Disable ECP DSAI
Post by: Dane on 04 Aug 2005, 14:39:33
Quote
// Note:
// You may also specify particular individual units to be exempt from DSAI by
// placing the following in the init field of the unit, in the editor.
// [this] exec format["%1dsai\dsai_exclude.sqs",ECP_path]
Title: Re:Disable ECP DSAI
Post by: Atropin on 04 Aug 2005, 14:45:48
Wow! this is very nice :D

Now i can decide wich units are not included in DSAI!

thank u all guys
Title: Re:Disable ECP DSAI
Post by: Dane on 05 Aug 2005, 13:04:35
No problem ;)

Remember to hit the "Solved" button in left buttom corner if you have no further questions.
Title: Re:Disable ECP DSAI
Post by: Atropin on 05 Aug 2005, 16:29:16
Yeah solve :)

thx