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
help script
MrJackrabbit Offline
Junior Member

Posts: 26
Threads: 10
Joined: Nov 2013
Reputation: 0
#1
help script

so heyllo,
so im messing around with script function stuff and im trying to find a way to add something to this script.

this is what i have so far:

void OnStart()
{
SetEntityCallbackFunc("key_1", "OnPickup");
}

void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("servant_brute_1", true);
ShowEnemyPlayerPosition("servant_brute_1");
}



this spawns an enemy hallucination once you pick up the key and everything works so far. i took out all the other parts of the scrip because this is the only important thing but ive tried it and it works fine.

i was wondering if anyone could tell me how to have the player look at the brute when he picks up the key.
thank yall!
12-24-2013, 10:02 PM
Find


Messages In This Thread
help script - by MrJackrabbit - 12-24-2013, 10:02 PM
RE: help script - by DnALANGE - 12-24-2013, 10:07 PM
RE: help script - by MrJackrabbit - 12-24-2013, 10:11 PM
RE: help script - by DnALANGE - 12-24-2013, 10:24 PM
RE: help script - by MrJackrabbit - 12-24-2013, 10:36 PM
RE: help script - by DnALANGE - 12-24-2013, 10:53 PM



Users browsing this thread: 1 Guest(s)