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
Script Help Area script. Help needed !
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#4
RE: Area script. Help needed !

(02-07-2012, 09:27 PM)Khyrpa Wrote: tee global filu mappikansioon (global.hps). lisää sinne tällasta:

void OnGameStart()
{
SetGlobalVarInt("ToActivateOrNotTo", 0);
}

sitte sillon ku se joku tapahtuu et saat sen script arean toimimaan ni laitat sinne:
SetGlobalVarInt("ToActivateOrNotTo", 1);

eli global filussa toi variaabeli muuttuu nollasta ykköseks.

Sitte se mappi missä se area on:

////
void OnEnter()
{
GetGlobalVarInt("ToActivateOrNotTo");
{
if(GetGlobalVarInt("ToActivateOrNotTo") == 1)
{
//stuff you want done here
}
if(GetGlobalVarInt("ToActivateOrNotTo") == 0)
{
//nothing
}
}
}



edit. ninja'D
Hi khyrpa ^^



02-07-2012, 09:31 PM
Find


Messages In This Thread
Area script. Help needed ! - by SpudroSpadre - 02-07-2012, 09:12 PM
RE: Area script. Help needed ! - by SilentStriker - 02-07-2012, 09:22 PM
RE: Area script. Help needed ! - by SpudroSpadre - 02-07-2012, 09:41 PM
RE: Area script. Help needed ! - by Khyrpa - 02-07-2012, 09:27 PM
RE: Area script. Help needed ! - by SilentStriker - 02-07-2012, 09:31 PM
RE: Area script. Help needed ! - by Ninami - 02-08-2012, 03:12 AM
RE: Area script. Help needed ! - by Your Computer - 02-08-2012, 03:40 AM
RE: Area script. Help needed ! - by Ninami - 02-08-2012, 04:44 AM
RE: Area script. Help needed ! - by flamez3 - 02-08-2012, 06:03 AM
RE: Area script. Help needed ! - by Ninami - 02-08-2012, 06:25 AM
RE: Area script. Help needed ! - by Your Computer - 02-08-2012, 06:31 AM
RE: Area script. Help needed ! - by Ninami - 02-08-2012, 07:37 AM
RE: Area script. Help needed ! - by Your Computer - 02-08-2012, 08:51 AM



Users browsing this thread: 2 Guest(s)