| RE: how to make a door load another map ? 
 
				It gave me an error : FATAL ERROR: Could not load script file 'custom_stories/maps/custom_stories/maps/maps/MansionEscape.hps'!
 Main(24,1) : ERR : Unexpected token '{'
 
 here is the script:
 ////////////////////////////
 // Run when entering map
 void OnEnter()
 {
 AddUseItemCallback("", "key_tomb_1", "castle_2", "KeyOnDoor", true);
 }
 
 void KeyOnDoor(string &in asItem, string &in asEntity)
 {
 SetSwingDoorLocked("castle_2", false, true);
 PlaySoundAtEntity("", "unlock_door.snt", "castle_2", 0.0f, true);
 }
 void OnStart()
 {
 AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
 }
 void MonsterFunc1(string &in asParent , string &in asChild , int alState)
 {
 SetEntityActive("servant_grunt_1" , true);
 AddEnemyPatrolNode("servant_grunt_1","PathNodeArea_1",0,"");
 AddEnemyPatrolNode("servant_grunt_1","PathNodeArea_12",0,"");
 }
 
 {
 ChangeMap(string& asMansionEscapeTwo, string& asStartPos, string& asStartSound, string& asEndSound);
 }
 
				
(This post was last modified: 03-26-2011, 12:54 AM by Crypto.)
 |