Blockland Forums > Modification Help
Vehicle Script Assistance
<< < (2/4) > >>
Midway Sentinel:
like so?


--- Code: ---function DMTVvehicle::onadd(%this,%obj)
{
       %obj.checkVelocity
     %obj.PlayAudio(0,DMTVSound);
}
--- End code ---
and remove the whole onSpawn function?
Headcrab Zombie:

--- Quote from: Midway Sentinel on August 15, 2011, 03:52:43 PM ---like so?


--- Code: ---function DMTVvehicle::onadd(%this,%obj)
{
       %obj.checkVelocity();
     %obj.PlayAudio(0,DMTVSound);
}
--- End code ---
and remove the whole onSpawn function?

--- End quote ---

Fixed, and unless you added something else to onSpawn, then yeah.
Midway Sentinel:
still does nothing ingame. i dont get it. it should work
Headcrab Zombie:
I must be doing something wrong, but without a copy on blockland (I'm in class) I can't figure out what
Midway Sentinel:
ok, well i thank you for your efforts. maybe i can send you the entire project later, so you can try and find the full error? i know little scripting, but im attempting to learn. the way i see it: if i could learn modeling, i can learn scripting.
Navigation
Message Index
Next page
Previous page

Go to full version