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
#3
RE: help script

(12-24-2013, 10:07 PM)DnALANGE Wrote:
PHP Code: (Select All)
void OnStart()
 {
 
SetEntityPlayerInteractCallback("key_1""OnPickup"false);
 }

 
void OnPickup(string &in asEntitystring &in type)
 {
 
SetEntityActive("servant_brute_1"true);//Setting the enemy ACTIVE.
 
ShowEnemyPlayerPosition("servant_brute_1");// this will make the enemy attack you where ever you are.
 
StartPlayerLookAt("servant_brute_1"10.0f10.5f"");//The 10 is the speed to look at something, 1 is very slow, so this is very fast.
 

thank you so much! this helps alot!

(12-24-2013, 10:11 PM)MrJackrabbit Wrote:
(12-24-2013, 10:07 PM)DnALANGE Wrote:
PHP Code: (Select All)
void OnStart()
 {
 
SetEntityPlayerInteractCallback("key_1""OnPickup"false);
 }

 
void OnPickup(string &in asEntitystring &in type)
 {
 
SetEntityActive("servant_brute_1"true);//Setting the enemy ACTIVE.
 
ShowEnemyPlayerPosition("servant_brute_1");// this will make the enemy attack you where ever you are.
 
StartPlayerLookAt("servant_brute_1"10.0f10.5f"");//The 10 is the speed to look at something, 1 is very slow, so this is very fast.
 

thank you so much! this helps alot!

how do i stop looking at it? it worked but after it dissapears the player continues to look where it used to be. where do i put in "StopPLayerLookAt()"? i put that in the void OnPickup but that event and the startPlayerLookAt event occurs at the same time so they cancel each other out.
(This post was last modified: 12-24-2013, 10:22 PM by MrJackrabbit.)
12-24-2013, 10:11 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: 3 Guest(s)