LifeRemixed
Junior Member
Posts: 2
Threads: 1
Joined: Mar 2011
Reputation:
0
|
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 |
|
Pandemoneus
Senior Member
Posts: 328
Threads: 2
Joined: Sep 2010
Reputation:
0
|
|
03-21-2011, 09:21 PM |
|
LifeRemixed
Junior Member
Posts: 2
Threads: 1
Joined: Mar 2011
Reputation:
0
|
|
03-21-2011, 10:34 PM |
|
Hooumeri
Member
Posts: 57
Threads: 11
Joined: Oct 2010
Reputation:
0
|
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 |
|
MrBigzy
Senior Member
Posts: 616
Threads: 18
Joined: Mar 2011
Reputation:
8
|
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 |
|