OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: HuNtA on 03 Feb 2003, 11:11:01
-
Can some1 help me :P. I need a script that will check if the player has been spotted while his gun is pulled out and make some guys come and get him
-
what you could do is to go through a list of enemies in the game (all set to blue/careless so they wont attack) but if they KnowsOf (or whatever the function was) == 4 and your player HasWeapon "Gun" then they could be set to Aggressive status and go for his Pos.
Sounds good?
How are you gonna "pull out a gun" though? i only have CWC and there you couldn't physically have a gun "holstered". but you could make scripts that simulated it.
-
I sorta meant having the gun on your back (like in safe mode)
-
Give him a handgun instead. Those can be properly holstered. Must more believable.
-
Maybe a script that picks up an "X on back", defines a variable, and then a trigger with "Y detected by Z" that checks for the variable, and adjusts enemy behaviour accordingly.
casual1y