The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Look At
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#1
Look At

i want to set an entity active, when the player looks at an area. i saw this http://www.frictionalgames.com/forum/thread-18368.html

but i didnt understand it. i always get fatal error.

my code now:

SetEntityPlayerLookAtCallback("area_lookat_1", true, 1);



void area_lookat_1(string &in asEntity, int alState)
{
SetEntityActive ("armour_nice_complete_4", true);
SetEntityActive ("armour_nice_complete_5", true);
SetEntityActive ("armour_nice_complete_6", true);
SetEntityActive ("armour_nice_complete_7", true);
SetEntityActive ("armour_nice_complete_8", true);
}

When you are looking for someone, to do the scripting for your Custom Story, ask me!
11-13-2012, 04:44 PM
Find


Messages In This Thread
Look At - by tonitoni1998 - 11-13-2012, 04:44 PM
RE: Look At - by FlawlessHappiness - 11-13-2012, 04:59 PM
RE: Look At - by tonitoni1998 - 11-14-2012, 05:18 PM



Users browsing this thread: 1 Guest(s)