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
Help with Amnesia Level Editor
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Help with Amnesia Level Editor

First question is too lower/raise Daniel's Sanity.
To lower, use this.
PHP Code: (Select All)
GiveSanityDamage(float afAmountbool abUseEffect); 
afAmount - The amount of sanity you want to lower. Max is 100. Make sure to put .f behind every float, like this "2.5f"
abUseEffect - Determines whether you want a screen effect or not. True means "Screen Effect" while False means nothing.
///-------------------------///
To raise, use this.
PHP Code: (Select All)
AddPlayerSanity(float afSanity); 
afSanity - The amount of sanity you want to raise. Same as above but this one raises it, not lowering it.



Second question is to drain oil from the lantern.
To drain, use this.
PHP Code: (Select All)
SetPlayerLampOil(float afOil); 
afOil - The amount of oil you want. Max is 100.



Third question (and maybe NOT the last) is to play a sound and a music at the same time when colliding with a script area.
To do that, use this.
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""ScriptAreaName""SoundMusicPlay"true1);
}

void SoundMusicPlay(string &in asParentstring &in asChildint alState)
{
PlayMusic(MUSICNAME.oggtrue111false);
PlaySoundAtEntity(""MUSICNAME.snt"Player"0.1ffalse); //An .snt is a properties of a music file.



Hope this helps.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 04-26-2013, 02:18 PM by PutraenusAlivius.)
04-26-2013, 02:17 PM
Find


Messages In This Thread
Help with Amnesia Level Editor - by Natsu - 04-26-2013, 02:05 PM
RE: Help with Amnesia Level Editor - by PutraenusAlivius - 04-26-2013, 02:17 PM
RE: Help with Amnesia Level Editor - by Romulator - 04-26-2013, 02:22 PM
RE: Help with Amnesia Level Editor - by Natsu - 04-26-2013, 02:41 PM
RE: Help with Amnesia Level Editor - by Natsu - 04-26-2013, 02:49 PM
RE: Help with Amnesia Level Editor - by Natsu - 04-27-2013, 02:31 AM
RE: Help with Amnesia Level Editor - by Natsu - 04-27-2013, 05:07 AM
RE: Help with Amnesia Level Editor - by Natsu - 04-27-2013, 05:34 AM
RE: Help with Amnesia Level Editor - by Daemian - 04-27-2013, 05:26 AM
RE: Help with Amnesia Level Editor - by Natsu - 04-27-2013, 05:31 AM
RE: Help with Amnesia Level Editor - by Natsu - 04-27-2013, 05:39 AM
RE: Help with Amnesia Level Editor - by Daemian - 04-27-2013, 07:07 AM
RE: Help with Amnesia Level Editor - by Daemian - 04-27-2013, 10:40 AM
RE: Help with Amnesia Level Editor - by Natsu - 04-27-2013, 02:59 PM
RE: Help with Amnesia Level Editor - by Natsu - 04-27-2013, 05:01 PM
RE: Help with Amnesia Level Editor - by Natsu - 04-27-2013, 09:06 PM
RE: Help with Amnesia Level Editor - by Natsu - 04-27-2013, 10:14 PM
RE: Help with Amnesia Level Editor - by Natsu - 04-27-2013, 11:44 PM
RE: Help with Amnesia Level Editor - by Natsu - 04-28-2013, 06:46 PM
RE: Help with Amnesia Level Editor - by Natsu - 04-28-2013, 08:14 PM
RE: Help with Amnesia Level Editor - by Natsu - 12-30-2013, 01:25 PM



Users browsing this thread: 5 Guest(s)