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
help with intro
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#8
RE: help with intro

Not really I'm going to give you an example that I use in my CS.

This code makes so that when you are touching the door, if it's locked it appears a text but when it's unlocked it doesn't appear a text.

void OnStart()
{
SetLocalVarInt("DoorLocked", 1);
SetEntityPlayerInteractCallback("level_wood_1", "TextLockedDoor", false);
}

void TextLockedDoor(string &in asEntity)
{
if(GetLocalVarInt("DoorLocked") == 1){
SetMessage("Message", "LevelDoorUnlock", 3);
AddQuest("03Books", "03Books");
}
}

(This post was last modified: 02-01-2012, 06:59 PM by SilentStriker.)
02-01-2012, 06:58 PM
Find


Messages In This Thread
help with intro - by Death Icarus - 02-01-2012, 04:19 PM
RE: help with intro - by SilentStriker - 02-01-2012, 04:26 PM
RE: help with intro - by Death Icarus - 02-01-2012, 04:40 PM
RE: help with intro - by SilentStriker - 02-01-2012, 04:49 PM
RE: help with intro - by Death Icarus - 02-01-2012, 05:04 PM
RE: help with intro - by SilentStriker - 02-01-2012, 05:08 PM
RE: help with intro - by Death Icarus - 02-01-2012, 05:23 PM
RE: help with intro - by SilentStriker - 02-01-2012, 06:58 PM
RE: help with intro - by Death Icarus - 02-01-2012, 07:27 PM



Users browsing this thread: 7 Guest(s)