Frictional Games Forum (read-only)
how do i make a "Poofer" ? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: how do i make a "Poofer" ? (/thread-12779.html)

Pages: 1 2


RE: how do i make a "Poofer" ? - burge4150 - 08-20-2014

Yep, but he said he wanted to do with dynamically with a script, so we were looking at other ways to accomplish this.


RE: how do i make a "Poofer" ? - CarnivorousJelly - 08-20-2014

(08-20-2014, 04:52 PM)giacomo9 Wrote: I want use this script: void SetEnemyIsHallucination(string& asName, bool abX);

But I don't know what is "string& asName" (It must be "Player" or enemy name?)
"bool abx" is the distance, I know. In quotes I just must to write number?

Or, simpler, can you write a example of this script for me? Thanks Big Grin

SetEnemyIsHallucination("scary_monster_name", true);
Replace scary monster name with the actual monster's name

A string is a set of characters inside quotation marks (scary_monster_name). It must have the quotes around it.
A bool (boolean) is a set value of true or false, not distance Smile


RE: how do i make a "Poofer" ? - FlawlessHappiness - 08-21-2014

(08-20-2014, 05:44 PM)burge4150 Wrote: Yep, but he said he wanted to do with dynamically with a script, so we were looking at other ways to accomplish this.

That's right! Smile

but I cannot figure out any scenario where you wouldn't have the monster in editor anyway, so why not just tick it?

Unless the scenario is that it's not a poofer, until a certain thing has happened. Then the range can STILL be editted in the monsters properties ^_^

So what everyone else said. Yup, string = letters = the monsters name.