Jump to content

Scripting and NPC to Aim at Something


Recommended Posts

Posted

Lets say I want an npc to fire a shot at a specific point somewhere. An example could be shooting a bottle sitting on a shelf behind the bar. Is there a way to script an aimpoint , like at an info_null, that can be placed near the bottle to get the desired effect?

 

 

 

Posted

Lets say I want an npc to fire a shot at a specific point somewhere. An example could be shooting a bottle sitting on a shelf behind the bar. Is there a way to script an aimpoint , like at an info_null, that can be placed near the bottle to get the desired effect?

SET_WATCHTARGET or SET_LOOK_TARGET linked to a ref_tag with targetname and script_targetname i guess, force the NPC affected to watch in the direction of the entity.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...