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
Death by light?
LifeRemixed Offline
Junior Member

Posts: 2
Threads: 1
Joined: Mar 2011
Reputation: 0
#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
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#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
LifeRemixed Offline
Junior Member

Posts: 2
Threads: 1
Joined: Mar 2011
Reputation: 0
#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
Hooumeri Offline
Member

Posts: 57
Threads: 11
Joined: Oct 2010
Reputation: 0
#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
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#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




Users browsing this thread: 1 Guest(s)