Jump to content
Sign in to follow this  
Blanco

Weapons & civilians

Recommended Posts

When i place this a script...

_unit = _this select 0

_unit addmagazine "glockmag"

_unit addweapon "glock"

_unit addmagazine "glockmag"

_unit addmagazine "glockmag"

exit

The civ got his weapon & magazines (I can see them in my gearsection of the briefing) but I can't shoot or reload the thing?! crazy_o.gif

Note : _unit is the player & it's for SP

When I place this in the init of the civ, it works, but I don't need it from the start... ghostface.gif

What can I do to solve this prob?

Share this post


Link to post
Share on other sites

Just put this into the INIT field.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this addmagazine "glockmag"; this addmagazine "glockmag"; this addmagazine "glockmag"; this addweapon "glock"

Share this post


Link to post
Share on other sites

Just press spacebar. It happens to me when I make a trigger that gives me weapons, and it seems as if I haven't selected the weapon.

Share this post


Link to post
Share on other sites

nope, pressing the spacebar doesn't work either.

@ Sharia : the civ needs the weapons during the mission, NOT in the beginning..

Share this post


Link to post
Share on other sites
nope, pressing the spacebar doesn't work either.

@ Sharia  : the civ needs the weapons during the mission, NOT in the beginning..

unit selectWeapon weapon

should work.

try it

Share this post


Link to post
Share on other sites
nope, pressing the spacebar doesn't work either.

@ Sharia  : the civ needs the weapons during the mission, NOT in the beginning..

Then you can make a trigger and use the condition to get the weapons when they are needed. And in the on Activation line, use what Sharia gave you.

OnActivation: unitname addmagazine "glockmag"; unitname addmagazine "glockmag"; unitname addmagazine "glockmag"; unitname addweapon "glock"

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  

×