Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do i make a "Poofer" ?
Lemorz56 Offline
Junior Member

Posts: 10
Threads: 3
Joined: Oct 2011
Reputation: 0
#1
how do i make a "Poofer" ?

how do i make a Poofer? a monster that fades into dust when close? Heart
01-22-2012, 02:55 PM
Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#2
RE: how do i make a "Poofer" ?

click the monster in the LVL editor, go to the entity tab and click hallucination tickbox or something, then you can edit the distance of how close it has to be to "poof"

100 post masterrace btw

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-22-2012, 03:17 PM by Tripication.)
01-22-2012, 02:57 PM
Find
DaAinGame Offline
Member

Posts: 90
Threads: 11
Joined: Mar 2012
Reputation: 4
#3
RE: how do i make a "Poofer" ?

What about if i want to use a script to do this? Like make the grunt spawn, run at the player and then *POOF* after picking up an item, such as a key name "bedroom_key"?


Realm Of Another Chapter 1: http://www.frictionalgames.com/forum/thread-14142.html
Realm Of Another Chapter 2: Postponed
Adder Halls: 5%
03-10-2012, 01:19 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: how do i make a "Poofer" ?

(03-10-2012, 01:19 AM)DaAinGame Wrote: What about if i want to use a script to do this? Like make the grunt spawn, run at the player and then *POOF* after picking up an item, such as a key name "bedroom_key"?

SetEnemyIsHallucination: http://wiki.frictionalgames.com/hpl2/amn...ns#enemies

Tutorials: From Noob to Pro
03-10-2012, 01:32 AM
Website Find
Saren Offline
Member

Posts: 196
Threads: 20
Joined: Jan 2012
Reputation: 1
#5
RE: how do i make a "Poofer" ?

(03-10-2012, 01:32 AM)Your Computer Wrote: SetEnemyIsHallucination: http://wiki.frictionalgames.com/hpl2/amn...ns#enemies
What he said ^^
I would recommend setting the distance to 2 or 3 since 1 is preeeeetty damn close.. lol, and it might not poof away. Happened to me, haha



03-10-2012, 08:18 AM
Find
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#6
RE: how do i make a "Poofer" ?

(03-10-2012, 08:18 AM)Saren Wrote:
(03-10-2012, 01:32 AM)Your Computer Wrote: SetEnemyIsHallucination: http://wiki.frictionalgames.com/hpl2/amn...ns#enemies
What he said ^^
I would recommend setting the distance to 2 or 3 since 1 is preeeeetty damn close.. lol, and it might not poof away. Happened to me, haha
1 is the players size, so he has to be in the player.

Signature to awesome to be displayed.
03-10-2012, 12:17 PM
Find
giacomo9 Offline
Junior Member

Posts: 37
Threads: 11
Joined: Nov 2012
Reputation: 0
#7
RE: how do i make a "Poofer" ?

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
08-20-2014, 04:52 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#8
RE: how do i make a "Poofer" ?

(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

...

You could of just make a new thread.

Spoiler below!

void SetEnemyIsHallucination(string& asName, bool abX);
asName - Internal name (enemy name)
abX - Should the enemy be a hallucination or not


"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 08-20-2014, 04:58 PM by PutraenusAlivius.)
08-20-2014, 04:58 PM
Find
burge4150 Offline
Member

Posts: 56
Threads: 15
Joined: Feb 2014
Reputation: 0
#9
RE: how do i make a "Poofer" ?

String would be monster name.
Bool is always true or false. Things like Int and Float are numbers.

SetEnemyIsHallucination("monstername", true);

As for distance where it vanishes, I have no idea how that's calculated with this script. My guess is that as soon as the monster is triggered to be a hallucination it would vanish wherever it is. Without testing though I don't know.
(This post was last modified: 08-20-2014, 05:25 PM by burge4150.)
08-20-2014, 05:24 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#10
RE: how do i make a "Poofer" ?

(08-20-2014, 05:24 PM)burge4150 Wrote: String would be monster name.
Bool is always true or false. Things like Int and Float are numbers.

SetEnemyIsHallucination("monstername", true);

As for distance where it vanishes, I have no idea how that's calculated with this script. My guess is that as soon as the monster is triggered to be a hallucination it would vanish wherever it is. Without testing though I don't know.

NECROOOOOO!

To make it easier, you can tick this in the editor. Just go to the monster properties and tick "Hallucination". This is also where you can specify the actual distance from you to the monster where it would disappear.

Trying is the first step to success.
08-20-2014, 05:30 PM
Find




Users browsing this thread: 1 Guest(s)