Frictional Games Forum (read-only)

Full Version: Hi, i need help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Can someone give me a script like that:

Same level, 5 keys, 5 locked doors

and 5 scriptarea _> monster appear
scripts..

but i need that 5 keys and 5 locked doors script

--------------------------------------------------

Can someone make it for me ?
We can't just simply MAKE a map per se. Is there a reason why you cannot make the map, or the script?
i suck in scripting and i wan't script Big Grin

Sry bad english, im from Finland!
Well, in order for us to help, we need a map, as a bare minimum.

To learn about making scripts, take a look at some of the tutorials on the wiki!
This one about opening doors with keys should help: http://wiki.frictionalgames.com/hpl2/tut...cks_a_door
Can you say how i can make script with 5 keys, this is one key and one locked door :

void OnStart()
{
AddUseItemCallback("", "avain", "ovi", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}


------------------

But i want 5 !
This isn't posted in the right section, moved.
Can someone give that script for me ? :<
Whilst this community is here to help, we are not here to make your mods for you, I'd suggest you head over to the frictional games Wiki and learn some scripting! Or try to team up with someone whom is capable of scripting.
You just put more adduseitemcallbacks and then use key on door, for example:

PHP Code:
void OnStart()
{
AddUseItemCallback("""key1""door1""UseKeyOnDoor1"true);
AddUseItemCallback("""key2""door2""UseKeyOnDoor2"true);
AddUseItemCallback("""key3""door3""UseKeyOnDoor3"true);
AddUseItemCallback("""key4""door4""UseKeyOnDoor4"true);
AddUseItemCallback("""key5""door5""UseKeyOnDoor5"true);
}

void UseKeyOnDoor1(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);
}
void UseKeyOnDoor2(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);
}
void UseKeyOnDoor3(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);
}
void UseKeyOnDoor4(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);
}
void UseKeyOnDoor5(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);


Spoiler below!



OH THANK YOU, YOU'RE BEST Smile) <3

Thx rly
Pages: 1 2