Jump to content
Sign in to follow this  
limmy3

R_1 action ["WeaponOnBack"];

Recommended Posts

Hello again.

A Resistance agent has in the init line <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> R_1 action ["WeaponOnBack"]; R_1 setUnitPos "UP"; R_1 SetBehaviour "CARELESS";  R_1 SetCombatMode "Blue"; .

Which means that she should start the mission with the gun on the back. The Resistance in friendly to East.

Only when she says a dialog she puts the gun on back.

Is it possible to put a line in the init.sqs file?

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> R_1 action ["WeaponOnBack

Has someone any ideas?

regads limmy3

Share this post


Link to post
Share on other sites

To keep weapon on back, units mustn't be setunitpos "up"...Careless or safe behaviour should be enough to start with weapon on back.

Share this post


Link to post
Share on other sites

As ProfTournesol said all you need to do to get a unit to start with the weapon on their back is in the init field type: this setBehaviour "SAFE".

Or if you want to do it from the missions init.sqs type:

UnitName setBehaviour "SAFE"

smile_o.gif

sim

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×