OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: HuNtA on 03 Feb 2003, 11:11:01

Title: Being spotted with a gun
Post 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
Title: Re:Being spotted with a gun
Post by: Pointman on 04 Feb 2003, 01:26:45
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.
Title: Re:Being spotted with a gun
Post by: HuNtA on 04 Feb 2003, 17:13:35
I sorta meant having the gun on your back (like in safe mode)
Title: Re:Being spotted with a gun
Post by: Daneel on 05 Feb 2003, 19:51:30
Give him a handgun instead. Those can be properly holstered. Must more believable.
Title: Re:Being spotted with a gun
Post by: casual1y on 05 Feb 2003, 20:41:44
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