Thread: Script Question
View Single Post
  #13  
Old 07-08-2001, 04:08 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
NPC Code:

setstring carfuel,#v(this.fuel);
set caron;


try
NPC Code:
setstring client.carfuel,#v(this.fuel);


and instead of set caron;, try:
NPC Code:
this.caron = true;


(do this.caron=false when you're done, and check with this.caron==true to see if it's on)

You can only set client.strings and flags from a clientside script, and I think a variable would do better for a temporary thing anyway (this.caron)

also, yah, these are all wrong:
NPC Code:

if (playerdir=0) {


they need to be
NPC Code:

if (playerdir==0) {