![]() |
My ungodly amount of questions thread.
Instead of creating a new thread for every possible problem I come across, I have decided that it would be a better idea just to keep all my questions in one thread.
Right now I'm currently attempting to make it so every time I press 'f' fire comes out in the direction the player is facing and then disappears 2 seconds later. I cannot figure out why it's not working correctly. Can anyone try to walk me through what I'm doing wrong? Weapon PHP Code:
Gani PHP Code:
|
Not sure about the weapon script, but I found some errors in the gani script after trying a few things.
PHP Code:
|
Alright, I tired what you did and it didn't work so then I copied what you did and didn't work. I even removed all the unneccesary things in it that you said I didn't need and still nothing. I think it might have to do with the weapon npc. Here's the simplest thing I could think of to do, yet it still doesn't want to work.
Weapon PHP Code:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
= should be == |
For this?
PHP Code:
|
PHP Code:
EDIT: You're also missing a closing bracket in the first part. I think it should be... PHP Code:
|
Negitivo, or atleast I assume it shouldn't be. I can still call that function with scheduleevent(); with it being "function onClearFire();" maybe I'm mistaken.
|
Alright I figured it out I did
PHP Code:
|
Quote:
Weird, I don't use scheduleevent but it's strange that differs from basically every other command that calls an event. |
Quote:
Edit: I figured out the problem, I had the schedulevent time set at 0.5 and since I lag hard on vista and even harder with all that text I lagged enough to actually see it. |
Quote:
|
Quote:
|
Quote:
|
Shouldn't this make the particle effects find the player? I have tried searching the forums but couldn't find anything about this. Can you even get the particles x/y and change it's angle after it has been emitted?
PHP Code:
|
You can't edit/change an emitted particle, you'll have to use the addlocalmodifier and so on to get what you're looking for.
|
Can you read a particles x/y after it has been emitted? like
PHP Code:
PHP Code:
|
I don't believe so since it works like this:
emitter.particle.property When a particle emits, it uses the emitter, and particle variables that you defined and then it's out of your control. If you want complete control over an image, you'll have to use a showimg/findimg method. |
I ended up using move();
I'm having a problem of the particle hopping between players when they are both within range and then glitching out. I currently have the following in a loop move it using move(); I can't figure out why it keeps happening. I tried adding checks but I couldn't figure it out. Could someone tell me what I could do to keep it from jumping back and fourth between players? PHP Code:
|
Yes, I have been wondering about altering my particle engine script to use emitters, but I guess for the great speed there is also sacrafice of dynamic control.
|
| All times are GMT +2. The time now is 03:32 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.