Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Death by light?
Author Message
LifeRemixed Offline
Junior Member

Posts: 2
Joined: Mar 2011
Reputation: 0
Post: #1
Question Death by light?
I was wondering if it's possible to make it so that when i have my lantern active in an area it will fade enemies to smoke and get rid of them but if the lantern is inactive nothing will happen.
03-21-2011 09:12 PM
Find all posts by this user Quote this message in a reply
Pandemoneus Offline
Senior Member

Posts: 328
Joined: Sep 2010
Reputation: 0
Post: #2
RE: Death by light?
It's similiar to that:
http://www.frictionalgames.com/forum/thr...ht=lantern

03-21-2011 09:21 PM
Find all posts by this user Quote this message in a reply
LifeRemixed Offline
Junior Member

Posts: 2
Joined: Mar 2011
Reputation: 0
Post: #3
RE: Death by light?
(03-21-2011 09:21 PM)Pandemoneus Wrote:  It's similiar to that:
http://www.frictionalgames.com/forum/thr...ht=lantern

I'm really sorry but i'm pretty new to scripting and I couldn't figure out how to make that work..
03-21-2011 10:34 PM
Find all posts by this user Quote this message in a reply
Hooumeri Offline
Member

Posts: 57
Joined: Oct 2010
Reputation: 0
Post: #4
RE: Death by light?
I never could get my script to work. Activating the lantern is something you cant realy work into a script..

Atleast I cant.
03-24-2011 02:40 PM
Find all posts by this user Quote this message in a reply
MrBigzy Offline
Senior Member

Posts: 616
Joined: Mar 2011
Reputation: 8
Post: #5
RE: Death by light?
You can use the callback: SetLanternLitCallback(string &asCallback);
Syntax: MyFunc(bool abLit)

So everytime the lantern is lit, it'll do whatever is in the callback function.

Turning enemies to smoke is: FadeEnemyToSmoke(string& asName, bool abPlaySound);

Actually, now that I think of it, you'll need to check if enemies are a certain distance away from you. Not sure how to do that...
(This post was last modified: 03-25-2011 05:49 AM by MrBigzy.)
03-25-2011 05:39 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)