Jump to content
Sign in to follow this  
Maj Chip Hazard

Simple script!

Recommended Posts

_xco=10

_yco=20

hint format["x = %1",_xco]

exit

I have a question, while trying to debug a script, I shaved it down to this, can anyone tell me why this script causes an "unkown operator" error??

Share this post


Link to post
Share on other sites

Um whats it for?

Share this post


Link to post
Share on other sites

Does it matter what it is for? Is there anything technically wrong with it?

FYI, I cleared that .sqs file, and entered: hint "script is running"

and that didn't work either.

I wrote a completely different script file, same content, and it worked, same stuff, just a different .sqs file, can't figure it out.

One other problem I am having is I want to add an action when a player gets in a vehicle as the driver. It worked fine at first, then it quit working on entry into the vehicle, but the action pops up on the action menu when exiting the vehicle.

My trigger is: west/once

condition: player==driver <vehicle name>

on activation: player addaction["<action>","<script name.sqs>"]

I have tried other settings besides west/once, such as game logic and repeatedly.

I keep getting the same results now, the action does not add to the action menu until the player exits the vehicle.

At first it worked fine, and the action was there when entering the driver position of the vehicle, now I can not duplicate it to save my life.. grrrrrrrrrrrrrrrrrrrr

Share this post


Link to post
Share on other sites

p.s. I have not written script to remove the action, yet when the player exits the vehicle, and the action appears on the action menu, it disappears from the action menu when entering the driver position again.

It must be possible to add actions to the driver while in the vehicle, like I said it worked at first, then quit.

Share this post


Link to post
Share on other sites

Ok, if I enter the vehicle while in 3rd person, the action adds to the action menu, but not when in 1st person,hmmm anyone know why???

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×