The_Watcher 0 Posted November 29, 2002 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
Bart.Jan 0 Posted November 29, 2002 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
The_Watcher 0 Posted November 29, 2002 It's not for MP, but I don't mean a single unit, I mean every "soldier" unit on the map. Share this post Link to post Share on other sites
Bart.Jan 0 Posted November 29, 2002 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