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
setentityactive is not working?
liamthespy Offline
Junior Member

Posts: 26
Threads: 10
Joined: Jun 2012
Reputation: 0
#1
setentityactive is not working?

AddEntityCollideCallback("Player", "delusiontrigger_1", "delusionfunction_1", true, 1);



void delusionfunction_1(string &in asEntity, string &in type)
{
SetEntityActive("delusion_2", true);
ShowEnemyPlayerPosition("delusion_2");
}

those are the relevant parts of my code, but only the showenemyplayerposition part is taking affect, any ideas? I've triple checked the names on the entities
(This post was last modified: 06-17-2012, 12:00 AM by liamthespy.)
06-16-2012, 11:54 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: setentityactive is not working?

You have the wrong callback syntax.

Tutorials: From Noob to Pro
06-17-2012, 12:10 AM
Website Find
liamthespy Offline
Junior Member

Posts: 26
Threads: 10
Joined: Jun 2012
Reputation: 0
#3
RE: setentityactive is not working?

how do I fix it?

it's an area that the player collides with, if that makes any difference
(This post was last modified: 06-17-2012, 12:13 AM by liamthespy.)
06-17-2012, 12:12 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: setentityactive is not working?

http://wiki.frictionalgames.com/hpl2/amn...s#entities

Tutorials: From Noob to Pro
06-17-2012, 12:17 AM
Website Find
liamthespy Offline
Junior Member

Posts: 26
Threads: 10
Joined: Jun 2012
Reputation: 0
#5
RE: setentityactive is not working?

obviously the issue is that I'm having trouble understanding the tutorials, thanks for the no-help asshole. don't post in threads if you have nothing constructive to say except to point obvious things out. thanks.
06-17-2012, 12:28 AM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#6
RE: setentityactive is not working?

The syntax he's refering to are the words in the parentheses after "
delusionfunction_1 ". The syntax you have there are incorrect and the page he linked had the proper syntax listed if you scrolled down a little bit. Try changing:

(string &in asEntity, string &in type)
to the proper:

(string &in asParent, string &in asChild, int alState)


Don't be so hard on Your Computer, he is correct to assume that everyone who is modding/scripting for HPL2 should know the very basics. I'd suggest doing a little research to familiarize yourself with scripting "lingo", to better help yourself understand in the future.

I rate it 3 memes.
06-17-2012, 12:45 AM
Find
liamthespy Offline
Junior Member

Posts: 26
Threads: 10
Joined: Jun 2012
Reputation: 0
#7
RE: setentityactive is not working?

ah, fixed! thanks Big Grin can they activate even if I'm looking at their spawn?
06-17-2012, 12:49 AM
Find
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#8
RE: setentityactive is not working?

(06-17-2012, 12:49 AM)liamthespy Wrote: ah, fixed! thanks Big Grin can they activate even if I'm looking at their spawn?
They activate no matter the circumstance.

06-17-2012, 04:36 AM
Find




Users browsing this thread: 3 Guest(s)