- Scripting Problem - Created 18 years ago2005-10-05 17:33:34 UTC by Slasher_101 Slasher_101

Created 18 years ago2005-10-05 17:33:34 UTC by Slasher_101 Slasher_101

Posted 18 years ago2005-10-05 17:33:34 UTC Post #139595
How can I get an HGrunt do a little scripted sequence, and then get him to NOT attack me for the rest of the time ?

Also, I have an idle HGrunt leaning against a wall, I'm behind bars, which they can't see me through, but I can see them. But if I move, the HGrunt stops leaning and looks in my direction.

I need them both to completely ignore me.
  • Thanks
Posted 18 years ago2005-10-05 17:35:14 UTC Post #139596
Try the "no interaptions" flag! :)
Posted 18 years ago2005-10-05 17:37:02 UTC Post #139597
For the one attacking you, tick the "Prisoner" flag... I think?!
Posted 18 years ago2005-10-05 17:40:05 UTC Post #139598
Yeah in the script tick the 'no interaptions' flag to make the script override the grunts AI and in tick the grunt's prisoner flag to disable his AI forever! ;)
Posted 18 years ago2005-10-05 17:41:01 UTC Post #139599
Well, they don't attack me anymore, with the prisoner flag, but they still look at me if I move.
Posted 18 years ago2005-10-05 17:42:47 UTC Post #139600
Thats why you need the 'no interaptions' flag! ;) The prisoner flag makes them not attack!
Posted 18 years ago2005-10-05 17:48:10 UTC Post #139605
I have the interuptions flag on,

I think the problem is that they finish their script, then go back to normal.
Posted 18 years ago2005-10-05 17:49:22 UTC Post #139606
Try the 'override AI' flag.(not sure if thats the right name) :roll:
Posted 18 years ago2005-10-06 02:59:33 UTC Post #139655
Yep, tried that 2 :
Posted 18 years ago2005-10-06 03:09:02 UTC Post #139659
NEVER TRIED THIS.
make a brush between you and them.
make the sides you can see textured with "blue"
make it a func_wall
set render mode to texture
render ammount to 255.
If the game alows it should work.
the sides faceing them need to be a texture like "steel" or one with no blue bits
Posted 18 years ago2005-10-06 03:20:01 UTC Post #139661
I think that will work. I'm pretty sure that the grunts couldn't see me through my one-way 'mirrors' in the past.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 18 years ago2005-10-06 07:12:40 UTC Post #139704
I'll try, but is there no way to make them like, completely 'scripted' so they don't really have AI ?
Posted 18 years ago2005-10-06 07:39:51 UTC Post #139712
Do you know what the difference between the "target" and the "target monster" is in a scripted_sequence ?
Posted 18 years ago2005-10-06 07:46:38 UTC Post #139713
Target is what it triggers when the sequence is finished.
Target monster is the monster that does the sequence.
Posted 18 years ago2005-10-06 07:48:01 UTC Post #139715
Try aiscripted_sequence instead of the scripted_sequence, or try making any invisible alien on the spot he has to look at.
e.g:
monster_zombie/headcrab, or any monster entity with these properties:

render mode: Solid/texture
FX amount: 0
Prisoner Flag: checked

The grunt should keep looking at the zombie, which is invisible for the player for all the time, I think.. You could also add the invisible wall, as killer said. That way, he'll look at the zombie and never notice the player.
:)
Daubster DaubsterVault Dweller
Posted 18 years ago2005-10-06 09:10:58 UTC Post #139742
Thanks Evilsod, I think the invisible monster thing would work, but I can't use it in this instance, hard 2 explain. :)
Posted 18 years ago2005-10-06 09:15:25 UTC Post #139744
Map it for OpFor? Then you can use monster_human_grunt_ally

Actually just tried it... they face you too, they just don't attack!
Posted 18 years ago2005-10-06 12:15:59 UTC Post #139804
Thanks Evilsod, I think the invisible monster thing would work, but I can't use it in this instance, hard 2 explain.
You should really have another look, who you're thanking, dude... ;)
Daubster DaubsterVault Dweller
Posted 18 years ago2005-10-06 12:18:08 UTC Post #139805
You really should read more into it too.
Look a few posts up, he's thanking me for the target thing he asked!
I pity the fool who steals my praise!
Posted 18 years ago2005-10-06 12:37:05 UTC Post #139815
Don't make me mad, fool (grrrr).. You didn't suggest to make an invisible monster, sucka'... :P
And he's thankin' me for that.. :
Daubster DaubsterVault Dweller
Posted 18 years ago2005-10-06 12:41:48 UTC Post #139818
LOL! Who cares, we both helped in some way, I didn't do it for the thanks! :P
Posted 18 years ago2005-10-06 12:46:00 UTC Post #139819
Yea you're right.. :)
Daubster DaubsterVault Dweller
You must be logged in to post a response.