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
AddEntityCollideCallBack(): Support Needed!
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#9
RE: AddEntityCollideCallBack(): Support Needed!

No, you are doing it wrong again. Just. Put the same functions of Key 1 and Key 2.
But then, instead of "doorroom01" put in asEntity.
And at PlaySound instead of "doorroom01" you do asEntity
and at RemoveItem asItem.
This will make it remove the item that you used. Cause that's the String that it found. And the Entity too. If you don't know what the fuck I'm saying, read trough and see what I changed in your script.
PHP Code: (Select All)
void OnStart(){
AddUseItemCallback("""key01""doorroom01""KeyOnDoor"true);
AddUseItemCallback("""key02""doorroom02""KeyOnDoor"true);
AddEntityCollideCallback("Player","RoomofSecretsArea","CollideRoomTwo",true1);
}

void CollideRoomTwo(string &in asParentstring &in asChildint alState
{
SetSwingDoorClosed("doorroom01"truetrue);
}


void KeyOnDoor(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door"asEntity 0false);
RemoveItem(asItem);
}


void keyfunc(string &in asEntitystring &in type)
{
SetEntityActive("servant_brute_1"true);
StartPlayerLookAt("servant_brute_1"1515"");
AddTimer(""2"monstertimer");
ShowEnemyPlayerPosition("servant_brute_1");

}


void monstertimer(string &in asTimer)
{
StopPlayerLookAt();


Signature to awesome to be displayed.
(This post was last modified: 06-20-2012, 04:29 PM by Stepper321.)
06-20-2012, 04:28 PM
Find


Messages In This Thread
RE: AddEntityCollideCallBack(): Support Needed! - by Stepper321 - 06-20-2012, 04:28 PM



Users browsing this thread: 1 Guest(s)