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 to make a monster appear after i read a note?
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#3
RE: How to make a monster appear after i read a note?

(02-22-2011, 05:04 AM)Tanshaydar Wrote: You need to write a callback function when interacted with note.

void PickedUpNote(string &in entity)
{
    SetEntityActive("servant_grunt_1", true);
}

Write PickedUpNote in level editor for the not, in "when interacted" part.
Place a grunt or something where you want, then deactivate it, then activate it with note.

Next time, try to search, which will give you much faster and better answers.

I don't quite understand.
(02-22-2011, 06:05 AM)Raymond Wrote:
(02-22-2011, 05:04 AM)Tanshaydar Wrote: You need to write a callback function when interacted with note.

void PickedUpNote(string &in entity)
{
    SetEntityActive("servant_grunt_1", true);
}

Write PickedUpNote in level editor for the not, in "when interacted" part.
Place a grunt or something where you want, then deactivate it, then activate it with note.

Next time, try to search, which will give you much faster and better answers.

I got an error when i test the map, do i need to replace the "string &in entity" into the note's name? I am new to these things, sorry.

One World To Another [DEMO] coming soon.
(This post was last modified: 02-22-2011, 06:13 AM by Raymond.)
02-22-2011, 06:05 AM
Find


Messages In This Thread
RE: How to make a monster appear after i read a note? - by Raymond - 02-22-2011, 06:05 AM



Users browsing this thread: 1 Guest(s)