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
If player has lantern
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: If player has lantern

The first should work, although you really don't need that timer.

PHP Code: (Select All)
void OnStart()
{
    if(
HasItem("Lantern"))
    {
        
SetEntityActive("Entity_Name"true);
    }


Just make sure your entity actually can be scripted with. Not all types can. StaticProp does not support activating/deactivating. Also, since this is in OnStart, not OnEnter, make sure this is the first time the player enters this map, not returning.

Is your entity actually inactive when you enter the map? Check for map_caches and internal names.

(This post was last modified: 08-02-2015, 03:33 PM by Mudbill.)
08-02-2015, 03:32 PM
Find


Messages In This Thread
If player has lantern - by User01 - 08-02-2015, 02:22 PM
RE: If player has lantern - by Mudbill - 08-02-2015, 03:32 PM
RE: If player has lantern - by User01 - 08-02-2015, 04:03 PM



Users browsing this thread: 1 Guest(s)