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
Script Help HasItem Help
jamer125 Offline
Junior Member

Posts: 6
Threads: 3
Joined: Aug 2013
Reputation: 0
#1
HasItem Help

ok so i'm learning tons of new scripts to this amnesia map editor but idk how to set up the HasItem function. I want it so when i pick up Agrippa's head it'll slowly do damage like per second, does anyone know how to set this up would i use an interact with entity function?
08-19-2013, 08:27 AM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: HasItem Help

This place is your friend:

http://wiki.frictionalgames.com/hpl2/amn..._functions

Anyways:

void OnStart()
{
AddTimer("", 1, "Test");
}

void Test (string &in asTimer)
{
if (HasItem("AggripaHead")) //It's possible that it has to be if (HasItem("Aggripa") == true)
{
//Your damage
}
AddTimer("", 1, "Test");
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
08-19-2013, 09:39 AM
Find
jamer125 Offline
Junior Member

Posts: 6
Threads: 3
Joined: Aug 2013
Reputation: 0
#3
RE: HasItem Help

Got it to work thanks
08-19-2013, 11:45 AM
Find




Users browsing this thread: 1 Guest(s)