So I'm trying to make a mission that allows players to dress as civilians to gather Intel close to enemy positions without being attacked. I saw a script that was something like:
this setCaptive true; (in my player init)
The use a trigger with:
currentWeapon player == primaryWeapon player;
(In the trigger conditions) and:
Player setCaptive false;
But it doesn't work. I can drop my weapons and approach the enemy but they still fire at me. I don't know how to script but I think that instead of currentWeapon player, I need some way of scripting "if player has no weapon" then setCaptive true. Any thoughts?