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
Script Help Stop Player Look at [Solved]
ShipinShen Offline
Junior Member

Posts: 23
Threads: 7
Joined: Apr 2014
Reputation: 0
#3
RE: Stop Player Look at

(04-21-2014, 10:36 AM)FlawlessHappiness Wrote: Your mistake is in:

void stop()
{
StopPlayerLookAt();
}

Because you are clearly calling a timerfunction with

AddTimer("", 1, "stop");

Therefore the script-functino must be:

void stop(string &in asTimer)
{
StopPlayerLookAt();
}


Do you see what i added?
These are called parameters, and they help the script understand what kind of function you want to call.

This might help:
http://www.frictionalgames.com/forum/thread-18368.html

Alright! I understand, i thought the "stop" in the timer would say the script, that he use the function stop Big Grin Thanks!

ShipinShen - YouTube
04-21-2014, 12:14 PM
Find


Messages In This Thread
Stop Player Look at [Solved] - by ShipinShen - 04-21-2014, 05:42 AM
RE: Stop Player Look at - by FlawlessHappiness - 04-21-2014, 10:36 AM
RE: Stop Player Look at - by ShipinShen - 04-21-2014, 12:14 PM



Users browsing this thread: 1 Guest(s)