DRedshot
Senior Member
Posts: 374
Threads: 23
Joined: Jun 2011
Reputation:
11
|
RE: Errors on my errors?!
instead of "SetEntityPlayerInteractCallback" i'd do something else.
1. Click on "Key_1" in level editor
2. Click the tab on the right of the screen
3. In the first callback box, type a name, for example "OnInteract"
4. Hover over the box, and read the description. it should say "asType can be OnBreak, OnIgnite, OnPickup"
5. In your script write
void OnInteract(string &in asEntity , string &in asType)
{
// OnInteract must be exactly the same as the name you typed into that box in level editor
if(asType=="OnPickup"){
SetEntityActive("atticscare", true);
}
}
(This post was last modified: 08-18-2011, 01:44 PM by DRedshot.)
|
|
08-18-2011, 01:43 PM |
|