Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help How to achieve this scenario?
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#11
RE: How to achieve this scenario?

(02-01-2013, 04:09 AM)serbusfish Wrote: Thanks for being patient with me, but something is still wrong because I pasted that exact code and the game throws up an error message saying 'ERR - expected '('.

It must have something to do with the line

"void BreakPotPlant(string &in asParent, string &in asChild, int alState)"

because the map loads when this is deleted. Am I supposed to replace the text in this line?

If it helps here is the entire content of my .hps file so far:

//===========================================
     // This runs when the map first starts
     void OnStart()
{

        if(ScriptDebugOn())

        
    {
              
       GiveItemFromFile("tinderbox", "tinderbox.ent);
              AddEntityCollideCallback("Player", "ScriptArea_2", "BreakPotPlant", true, 1);
                
     }         
  
}        
      
                     void BreakPotPlant(string &in asParent, string &in asChild, int alState)
                         {
                             SetPropHealth("pot_plant_small02_1", 0);
                         }

     //===========================================
     // This runs when the player enters the map
     void OnEnter()
   {
  
   //----AUDIO----//
    PlayMusic("10_amb", true, 5, 1, 0, true);
}
     //===========================================
     // This runs when the player leaves the map
     void OnLeave()
     {
     }

There, fixed it.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
02-01-2013, 10:28 AM
Find


Messages In This Thread
How to achieve this scenario? - by serbusfish - 01-30-2013, 01:54 AM
RE: How to achieve this scenario? - by NaxEla - 01-30-2013, 02:28 AM
RE: How to achieve this scenario? - by serbusfish - 01-30-2013, 04:07 AM
RE: How to achieve this scenario? - by The chaser - 01-30-2013, 09:35 AM
RE: How to achieve this scenario? - by serbusfish - 01-31-2013, 01:58 AM
RE: How to achieve this scenario? - by serbusfish - 01-31-2013, 05:30 PM
RE: How to achieve this scenario? - by serbusfish - 02-01-2013, 04:09 AM
RE: How to achieve this scenario? - by The chaser - 02-01-2013, 10:28 AM
RE: How to achieve this scenario? - by serbusfish - 02-01-2013, 05:04 PM
RE: How to achieve this scenario? - by Kreekakon - 02-01-2013, 05:17 PM
RE: How to achieve this scenario? - by serbusfish - 02-03-2013, 03:58 AM
RE: How to achieve this scenario? - by The chaser - 02-03-2013, 11:54 AM
RE: How to achieve this scenario? - by serbusfish - 02-05-2013, 03:29 AM
RE: How to achieve this scenario? - by serbusfish - 02-08-2013, 02:33 AM
RE: How to achieve this scenario? - by serbusfish - 02-08-2013, 01:48 PM



Users browsing this thread: 2 Guest(s)