Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-17-2008, 08:34 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to behold
What happened to player.dir?

I hadn't noticed it until I needed it for something, but has anyone else noticed that setting a players direction doesn't stick, anymore?

EG: To test it, I threw a player.dir = 2; in an onActionGrab function and it visually set my dir to direction 2, and half a second later (or less) I was facing back the way I was before grabbing the NPC to change it o.o The only way I've found it will stick is if I also set the player to freeze, but I'd rather them to be not frozen in this instance.

Anyone else getting this as well?
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #2  
Old 03-17-2008, 11:44 AM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Nothing.
PHP Code:
//#CLIENTSIDE
function onWeaponFired() 
  {
    
$random int(random(04));
    
player.dir $random;
  } 
Reply With Quote
  #3  
Old 03-17-2008, 04:05 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by TSAdmin View Post
I hadn't noticed it until I needed it for something, but has anyone else noticed that setting a players direction doesn't stick, anymore?

EG: To test it, I threw a player.dir = 2; in an onActionGrab function and it visually set my dir to direction 2, and half a second later (or less) I was facing back the way I was before grabbing the NPC to change it o.o The only way I've found it will stick is if I also set the player to freeze, but I'd rather them to be not frozen in this instance.

Anyone else getting this as well?
Thats our movement TSA. I still have to fix that ;D
__________________
Reply With Quote
  #4  
Old 03-17-2008, 04:40 PM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to behold
Quote:
Originally Posted by Crow View Post
Thats our movement TSA. I still have to fix that ;D
I figured as much the moment I realised one of the GST's spent nearly 30 minutes in this thread (According to the Who's Online section ) and then merely logged off, so it crossed my mind that it wasn't happening elsewhere.
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #5  
Old 03-17-2008, 11:30 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by [email protected] View Post
Nothing.
PHP Code:
//#CLIENTSIDE
function onWeaponFired() 
  {
    
$random int(random(04));
    
player.dir $random;
  } 
Probably because "$" isn't a valid character for variable identifiers.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #6  
Old 03-18-2008, 12:58 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by coreys View Post
Probably because "$" isn't a valid character for variable identifiers.
I wouldn't bet on it.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #7  
Old 03-18-2008, 01:00 AM
p2p_Sir_Link p2p_Sir_Link is offline
Banned
p2p_Sir_Link's Avatar
Join Date: Nov 2004
Posts: 425
p2p_Sir_Link is an unknown quantity at this point
Quote:
Originally Posted by coreys View Post
Probably because "$" isn't a valid character for variable identifiers.
works fine for me
Reply With Quote
  #8  
Old 03-18-2008, 01:09 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by coreys View Post
Probably because "$" isn't a valid character for variable identifiers.
Uhm, I think you got Sidney's post wrong, since she replied to TSAdmin that there was nothing wrong with it and showed a script she made to show..

__________________
Reply With Quote
  #9  
Old 03-18-2008, 01:29 AM
Rapidwolve24 Rapidwolve24 is offline
North*
Join Date: Oct 2007
Location: Massachusetts
Posts: 178
Rapidwolve24 is on a distinguished road
Send a message via AIM to Rapidwolve24 Send a message via MSN to Rapidwolve24
Quote:
Originally Posted by Crow View Post
Thats our movement TSA. I still have to fix that ;D
Lol.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.