Jump to content

Map Script problem


papam77

Recommended Posts

Posted
function DeeJay () 
outputChatBox ( "#ffffffAve !", getRootElement(), 255, 255, 255, true ) 
outputChatBox ( "#ffffffActual Year: 0 !", getRootElement(), 255, 255, 255, true ) 
  
createFire ( -1972.8114013672, -4087.1137695313, 53.04610824585, 1.8 ) 
  
end 
addEventHandler ("onClientResourceStart",getResourceRootElement(getThisResource()), DeeJay ) 
  
  

Why it doesn't create the fire ?

And in text i see hex code, but why ?

  • Moderators
Posted
function DeeJay () 
outputChatBox ( "#ffffffAve !", getRootElement(), 255, 255, 255, true ) 
outputChatBox ( "#ffffffActual Year: 0 !", getRootElement(), 255, 255, 255, true ) 
  
createFire ( -1972.8114013672, -4087.1137695313, 53.04610824585, 1.8 ) 
  
end 
addEventHandler ("onClientResourceStart",getResourceRootElement(getThisResource()), DeeJay ) 
  
  

Why it doesn't create the fire ?

And in text i see hex code, but why ?

(text) cause it is client.

Fire must work, unless your position is incorrect.

function DeeJay () 
    outputChatBox ( "#ffffffAve !", 255, 255, 255, true ) -- getRootElement() <<<< 
    outputChatBox ( "#ffffffActual Year: 0 !", 255, 255, 255, true ) -- getRootElement() <<<< 
      
    createFire ( -1972.8114013672, -4087.1137695313, 53.04610824585, 1.8 ) 
      
end 
addEventHandler ("onClientResourceStart",getResourceRootElement(getThisResource()), DeeJay ) 

  • Moderators
Posted

maybe you can use an object that also contains fire and set alpha to zero.

(write in the editor 'torch')

You probably have some certainty of always working fire. (fire's don't stay forever)

For the show right?

Posted

I don't know if this is true but maybe you have to be near the coordinates where the fire is when it starts. Were you near the fire when the resource started?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...