Hello everyone. I have a scenario planned out where a monster walks by a set of windows and casts a shadow. However, the monster will of course follow its set AI and see the player through the windows and attack rather than follow its patrol nodes. Is there a script I can use to disable the monster from attacking a merely have walk around outside?
Thanks!
This is super easy!
PHP Code:
SetEnemyDisableTriggers(string& asName, bool abX);
It's as easy as that! LOL
Okay, so when you activate the monster, put that little baby into the function:
string& asName is the name of your monster (with quotes) and
bool abX would be true (no quotes).
This particular line disables the enemy triggers, which, as you may have guessed, disables the monsters reactions to the players. That means, should your player walk close enough to it, make a noise or technically "be seen" by the monster, he won't do a single thing.
OR as an alternative to scripting it, feel free to just tick the "Disable Triggers" by selecting the enemy in the Level Editor, going to the entity tab on the right side and... Well, ticking the box!
Just an alternative, both methods will produce the same results
Thanks guys! Really appreciate it!
(05-10-2014, 09:50 AM)Romulator Wrote: [ -> ]OR as an alternative to scripting it, feel free to just tick the "Disable Triggers" by selecting the enemy in the Level Editor, going to the entity tab on the right side and... Well, ticking the box!
Just an alternative, both methods will produce the same results
I never even thought of that. Oooooobviously I haven't been using enough monsters in the level editor. LOL
(05-10-2014, 07:47 PM)HannahDJA Wrote: [ -> ] (05-10-2014, 09:50 AM)Romulator Wrote: [ -> ]OR as an alternative to scripting it, feel free to just tick the "Disable Triggers" by selecting the enemy in the Level Editor, going to the entity tab on the right side and... Well, ticking the box!
Just an alternative, both methods will produce the same results
I never even thought of that. Oooooobviously I haven't been using enough monsters in the level editor. LOL
That can both be a upside and a downside...
Upside:
I find that monsters have been overused in CSs. Monsters isn't just a thing to boost the scary factor of a story. They need the right placement in the development of scariness...
Downside:
Then you haven't played enough with monsters to understand what kind of a role they play
(05-10-2014, 07:47 PM)HannahDJA Wrote: [ -> ] (05-10-2014, 09:50 AM)Romulator Wrote: [ -> ]OR as an alternative to scripting it, feel free to just tick the "Disable Triggers" by selecting the enemy in the Level Editor, going to the entity tab on the right side and... Well, ticking the box!
Just an alternative, both methods will produce the same results
I never even thought of that. Oooooobviously I haven't been using enough monsters in the level editor. LOL
Don't worry about it
I discover a lot of things by accident haha