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
Level Editor Help A couple things I need help with.
kiruclanz Offline
Junior Member

Posts: 10
Threads: 5
Joined: Mar 2012
Reputation: 0
#1
A couple things I need help with.

So yeah, I've looked up many tutorials, google searched for hours etc. And cannot find a couple things I need help with.

Monster triggers
The PlayerCollide trigger that spawns a monster. I only know how to make the monster spawn by clicking on the trigger. What I want is when you step/walkthrough it, the monster will spawn.

Trigger hurt
Basic. When you walk through a certain trigger it causes you to lose health.

Can anyone tell me how to do those?
03-29-2012, 05:09 AM
Find Reply
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#2
RE: A couple things I need help with.

AddEntityCollideCallback is how you would make both work.
AddEntityCollideCallback("Player", "AreaName", "FunctionName", true, 1);

03-29-2012, 11:24 PM
Find Reply
Xanthos Offline
Senior Member

Posts: 318
Threads: 9
Joined: Mar 2012
Reputation: 8
#3
RE: A couple things I need help with.

void FUNCTIONNAME(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("MOBNAME", true);

AddEnemyPatrolNode("MOBNAME", "PATHNODENAME", 1, "");
AddEnemyPatrolNode("MOBNAME", "SECONDPATHNODENAME", 1, "");

AddEnemyPatrolNode("MOBNAME", "THIRDPATHNODENAME", 1, "");

AddEnemyPatrolNode("MOBNAME", "FOURTHPATHNODENAME", 1, "");

}

And I only know how to make the script hurt you this way

SetPlayerHealth(float afHealth);
AddPlayerHealth(float afHealth);

Or fiddle with this


GivePlayerDamage(float afAmount, string& asType, bool abSpinHead, bool abLethal);
//Reduces the health of the player.

//afAmount - amount of damage done to health
//asType - plays a certain effect on the screen when the damage is dealt (BloodSplat, Claws or Slash)
//abSpinHead - changes the camera view when damage is dealt
//abLethal - set to true if player can die from given damage

I still cant get it working

(This post was last modified: 03-30-2012, 12:00 AM by Xanthos.)
03-29-2012, 11:59 PM
Find Reply




Users browsing this thread: 1 Guest(s)