Jump to content
Sign in to follow this  
The_Watcher

Is it possible to...

Recommended Posts

How do I change a unit's default weapon? For example, how would I make a west "soldier" unit always begin with an M4 instead of the usual M16? I know you can just change the weapon in the init line, but I wouldn't want to have to do that every time...

Share this post


Link to post
Share on other sites

It's no to bad to do it every time. If you mean in MP respawn there are several respawn scripts.

If you mean in editing there are some ways. Some addon or editor upgrade or modifing some cfg file. I don't know how to do it but I know it exists. But usually main problem is when you want to play your mission on another computer. It didn't work without same changes you have in your Flashpoint.

Share this post


Link to post
Share on other sites

You can make trigger that covers whole map, activated by west once and into on activation execute script :[thislist] execute "rearm.sqs"

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_whole=_this select 0

_i=count _whole

#loop

_i=_i-1

?_i<0:exit

_man=_whole select _i

?!("Man"" countType [_man]>0):goto "loop"

?!("M16" in weapons _man):goto "loop"

_man removeweapon "M16"

_man removemagazines "M16"

_man addmagazine "m4"

_man addweapon "m4"

_man addmagazine "m4"

_man addmagazine "m4"

_man addmagazine "m4"

_man addmagazine "m4"

goto "loop"<span id='postcolor'>

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  

×