Language:
None specified     Change language:
Pastebin: 92233
Author: Anonymous
Subject: Untitled
Created: 2008-07-22 16:59:53
Download and save
Toggle line numbers
1Fish = { 
2  type = "Fish", 
3  MapVisMask = 0, 
4 ENTITY_DETAIL_ID=1, 
5 
6 Properties = { 
7 objModel = "Objects\\characters\\animals\\Fish\\fish01.cgf", 
8 nNumFish = 10, 
9 ................. 
10
11 
12------------------------------------------------------- 
13function Fish:OnInit() 
14 
15 self:NetPresent(nil); 
16 self:EnableSave(1); 
17 
18 self.flock = 0; 
19 self:CreateFlock(); 
20 if (self.Properties.bActivateOnStart ~= 1 and self.flock ~= 0) then 
21 Boids:EnableFlock( self.flock,0 ); 
22 end 
23end 
24 
25------------------------------------------------------- 
26function Fish:OnShutDown() 
27 if (self.flock ~= 0) then 
28 Boids:RemoveFlock( self.flock ); 
29 self.flock = 0; 
30 end 
31end 
32 
Thread:
[92233] Untitled by Anonymous at 2008-07-22 16:59:53
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.