Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 48 Guests
Online:

LATEST FORUM THREADS

»
map test
CoD Mapping
first map
CoD4 MP Mapping
eXtreme+ v2.9
CoDBO Map + Mod Releases
Gaming
Q4 General

Tutorials

»
CoD Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Adding a bobbing boat to your map
Versions: You must be logged in to view history.
This tutorial by br3nt shows you how to add a bobbing boat.

---=== HOW TO MAKE A BOBBING BOAT ===---

---=== BY: BR3NT ===---



1/First Create A Small Test Map Put Some Water In it Somewhere. I`ve Made a small Pool Added Some Water.
You Cant See It....But Its There....

2/Creat a Script_model and add these parameters:

KEY:model
VALUE:xmodel/ship_supplyboat

KEY:targetname
VALUE:boat

Thats it Compile Your Map.

Reference Pics Below:
scripmodel.jpg


Now for the Script...

In you main() section of your script plave this line:

thread boatbobbing();

Then Place this Function at the Bottom of Your Script:

boatbobbing()
{
boat = getent("boat","targetname"); // Get the name of the script_model
wait (randomfloat (1.5)); // Generate a random Number of Seconds Between Bobbings
org = (-64, 96, 72); // Define Origin or Location of Your Boat/script_model
timer = 1; // Speed of the Bobbing - Higer Number Slower Bobbing
while (1)
{
boat moveto (org + (0,0,2), timer, timer*0.5, timer*0.5); // 2 is the number of units to go Above Original Location
wait (timer);
boat moveto (org + (0,0,-2), timer, timer*0.5, timer*0.5); // 2 is the number of units to go Below Original Location
wait (timer);
}
}

Thats it..Time to See If It Works.....



Remember This Function Can Also Be Used By Making A Script_Brushmodel of a Plank or Anything You Can Build Basically.

Isnt Scripting FUN.........


Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»