OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Rytuklis on 12 Dec 2012, 17:44:45

Title: Few questions :/
Post by: Rytuklis on 12 Dec 2012, 17:44:45
Hey there. I have a few questions, such as:

How do i make an object activate once a certain unit is no longer moving? A convoy at this instance.
How do i force a unit to always stay alive?
How do i make the camera to look through the sniper scope or binoculars?
Title: Re: Few questions :/
Post by: bardosy on 13 Dec 2012, 12:36:11
"How do i force a unit to always stay alive?"

Write the unit's init field: this allowDamage false.
Title: Re: Few questions :/
Post by: Rytuklis on 13 Dec 2012, 16:13:33
Thank you :). Can anyone answer the rest of the questions?
Title: Re: Few questions :/
Post by: F2kSel on 14 Dec 2012, 02:10:59
How do i make an object activate once a certain unit is no longer moving? A convoy at this instance.

if (speed unitname == 0) then {whatever script you want goes here};

or in a trigger condition
speed unitsname == 0

on act
Hint "the vehicle has stopped"
Title: Re: Few questions :/
Post by: Rytuklis on 15 Dec 2012, 10:29:59
Thanks. And how about the third question?
Title: Re: Few questions :/
Post by: Inlesco on 15 Dec 2012, 13:26:04
^ Here's the answer: http://forums.bistudio.com/showthread.php?122421-PAA-question-Binoculars-overlay
Title: Re: Few questions :/
Post by: savedbygrace on 29 Dec 2012, 22:55:14
We have threads which cover this too Inlesco. Our COMREF can provide some help for commands, in your case, CutRsc (http://www.ofpec.com/COMREF/index.php?action=details&id=950&game=All). Type cutrsc into the search feature (http://www.ofpec.com/forum/index.php?action=search) of our site and have access to years of discussion.

Don't shy away from OFP or Arma discussion threads either, because they are still relevant to Arma2 subject matter. It's still the same engine, using the same commands, just improved in later titles with more commands to simplify the editing process.

I realize community members beat this phrase to death but it will truly help you learn better..."Use the search feature". It will reveal threads that open up more possibilities than you could imagine and if you still don't find a solution to your problem, then we are certainly here to help you, but you help yourself more by digging into past discussions first. Once you are at your wits end and can't locate a solution or just don't know what keyword to search for, then ask, but please do so by starting a thread for each new discussion, and naming it appropriately.

Happy editing and I wish you great adventures in learning through searching.