I want to make it so that if you walk up on one of my enemies (possiby under certain circumstances only) and press the use key, without pausing the game, it brings up a menu (just pictures associated with keybord buttons like insert through page down) that will allow me to preform special action on the pawn.
the menu can only be opened, stay up, and be active while the player is within a certain distance and can only be opened by perssing the use key.
i have an idea that i could use a conversation command of some sort but i havent the foggiest idea how to set one of those up.
I'll worry about the complicated actions later but the keys should bring the enemy pawn to seperate orders in the script. for example i want to take a hostage splinter cell style. so i sneak up behind an enemy and press Home. the enemy goes to a special order that bypasses its targeting order and, while playing a special animation set, gets snapped to the player with an offset to the left so he can be shot past. then i plan on having more available actions.
what do you guys think i could do to get this to work?
Thanks,
fps
PS. not really important yet but id figure id ask.
how do you think that i could make the player play special animations while he has a hostage? and how could i make having a hostage make the player only able to walk?
use pawns menu. hostages, takedowns, ect...
You could make the pawn check if the player is near enough and the use key is pressed, and then draw the picture you want on the screen with DrawFlipBookImage(). The you could check if a certain button is pressed with IsKeyDown() and make the pawn go to a different order.
With the built-in player that will be extremely hard, if not impossible. You could use the AnimateEntity() command in a script to make the player play the special animations, but I have no clue of how to disable running temporarily.how do you think that i could make the player play special animations while he has a hostage? and how could i make having a hostage make the player only able to walk?
Pain is only psychological.