Mohaas.net | Medal of Honor Allied Assault Spearhead Community

Mapping

Questions about scripting? Or new scripts made for you here!

Mapping

Postby Red_Hamel » 14 Feb 2015, 13:49

Hi All.
I working on my new map.
But Mohaa (BT) gives a error.
And i dont know what i is.
Can one of here help me?

Error in Console:
Cannot cast 'array' to entity
Cannot cast 'array' to entity
$Crane_Hook bind $Crane_Cart (global/Local/sv2_anim.scr, 84)
$Crane_Hook ^
^~^~^ Script Error: Failed execution of command 'bind'
$Crane_Wagon bind $Crane_Cart (global/Local/sv2_anim.scr, 92)
$Crane_Wagon ^
^~^~^ Script Error: Cannot cast 'array' to entity

What Doos Mohaa mean with this Error?
And how can i fix this error?
Can one of here help me?
The Scripting Can You Fint Bellow Here: (Next Post)
Greetz Red-Bull-NL-
Last edited by Red_Hamel on 15 Feb 2015, 12:47, edited 1 time in total.
I Was Join This Group On My Birdsday :D
Congratulations To: {.C.O.H.}Red-Bull-NL- / Red_Hamel
User avatar
Red_Hamel
 
Posts: 26
Joined: 28 Oct 2014, 01:16

Re: Mapping

Postby Red_Hamel » 14 Feb 2015, 13:55

Post Removed!
Last edited by Red_Hamel on 14 Feb 2015, 23:09, edited 2 times in total.
I Was Join This Group On My Birdsday :D
Congratulations To: {.C.O.H.}Red-Bull-NL- / Red_Hamel
User avatar
Red_Hamel
 
Posts: 26
Joined: 28 Oct 2014, 01:16

Re: Mapping

Postby Red_Hamel » 14 Feb 2015, 14:03

Its All About The Crane:
Attachments
sneakeak.png
The Crane
sneakeak.png (649.29 KiB) Viewed 6460 times
I Was Join This Group On My Birdsday :D
Congratulations To: {.C.O.H.}Red-Bull-NL- / Red_Hamel
User avatar
Red_Hamel
 
Posts: 26
Joined: 28 Oct 2014, 01:16

Re: Mapping

Postby Red_Hamel » 14 Feb 2015, 23:08

I have made a script for the Crane Animation.
Sow i have bind the: ( Crane_Hook with the Crane_Cart ) + ( $Crane_Hook bind $Crane_Cart )
And later i have bind the: ( Crane_Hook with the Crane_Wagon ) + ( $Crane_Wagon bind $Crane_Hook )

The Hole Scriping:
---------------------------+---------------------------+---------------------------+
| | |
V V V

Trigger = Color Pink / Thread = Color Yellow!!!
// *******************************
// ** Crane Animation Scripting **
// *******************************

Crane_Animation:

$Crane_Hook bind $Crane_Cart
$CraneCartTrigger waittill trigger
wait 2.0 //---------------------------> 2 Second's
$Crane_Cart moveto $Break_Point_1
$Crane_Cart loopsound CartRun
$Crane_Cart time 5 //---------------------------> 5 Second's
$Crane_Cart waitmove
$Crane_Cart stoploopsound CartStop
thread Break1
end
Break1:
wait (randomint(2) + 1.8) //---------------------------> 1.8 Second's Or 2 Second's Or 3.5 Second's
thread Crane_Animation2
end
Crane_Animation2:
$Crane_Cart moveto $Break_Point_2
$Crane_Cart loopsound CartRun
$Crane_Cart time 5 //---------------------------> 5 Second's
$Crane_Cart waitmove
$Crane_Cart stoploopsound CartStop
thread Lower_Hook
end
Lower_Hook:
$Crane_Hook movedown 60
$Crane_Hook time 6
$Crane_Hook waitmove
wait 5.0
thread Loading_Wagon
end
Loading_Wagon:
$Train_Wagon bind $Crane_Hook
$Crane_Hook moveup 60
$Crane_Hook time 6
$Crane_Hook waitmove
thread Break2
end
Break2:
wait (randomint(1.8) + 2) //---------------------------> 1.8 Second's Or 2 Second's Or 3.5 Second's
thread Crane_Animation3
end
Crane_Animation3:
$Crane_Cart moveto $Break_Point_3
$Crane_Cart loopsound CartRun
$Crane_Cart time 5 //---------------------------> 5 Second's
$Crane_Cart waitmove
$Crane_Cart stoploopsound CartStop
thread Break3
end
Break3:
wait (randomint(2) + 1.8) //---------------------------> 1.8 Second's Or 2 Second's Or 3.5 Second's
thread Crane_Animation4
end
Crane_Animation4:
$Crane_Cart moveto $End_Point
$Crane_Cart loopsound CartRun
$Crane_Cart time 5 //---------------------------> 5 Second's
$Crane_Cart waitmove
$Crane_Cart stoploopsound CartStop
thread Break4
end
Break4:
wait (randomint(1.8) + 2) //---------------------------> 1.8 Second's Or 2 Second's Or 3.5 Second's
thread Stat_Point
end
Stat_Point:
$Crane_Cart moveto $Start_Point
$Crane_Cart loopsound CartRun
$Crane_Cart time 5 //---------------------------> 5 Second's
$Crane_Cart waitmove
$Crane_Cart stoploopsound CartStop
thread Restart_Trigger
end
Restart_Trigger:
wait 1.0 //---------------------------> 1 Second
goto Crane_Animation
end
Attachments
Crane Wagon Hook1.png
Editor View (Follow The Colors In The Post
Crane Wagon Hook1.png (385.84 KiB) Viewed 6448 times
I Was Join This Group On My Birdsday :D
Congratulations To: {.C.O.H.}Red-Bull-NL- / Red_Hamel
User avatar
Red_Hamel
 
Posts: 26
Joined: 28 Oct 2014, 01:16


Return to Modding / Scripting

Who is online

Users browsing this forum: No registered users and 2 guests

cron