Jump to content
Geplaatst:
comment_1414855

Hallo allemaal.

Ik heb weer een stuk script geschreven. En nu wil ik hem compilen in SannyBuilder3, maar dan krijg ik de melding dat in de zinnen waar ik coordinaten in heb staan, niet genoeg parameters zitten. Dit is mijn (missie)script:

{
 use macro (Ctrl+J) "headsa"
 to insert a file header	  
}
{$VERSION 3.0.0000}
var
$PLAYER_CHAR: Player
end // var 
03A4: name_thread 'MAIN' 
01F0: set_max_wanted_level_to 6 
0111: toggle_wasted_busted_check 0 
00C0: set_current_time_hours_to 8 minutes_to 0 
04E4: unknown_refresh_game_renderer_at 2488.56 -1666.84 
03CB: set_rendering_origin_at 2488.56 -1666.84 13.38 
0053: $PLAYER_CHAR = create_player #NULL at 2488.56 -1666.84 13.38 
01F5: $PLAYER_ACTOR = create_player_actor $PLAYER_CHAR 
07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 
0373: set_camera_directly_behind_player 
01B6: set_weather 0 
0001: wait 0 ms 
087B: set_player $PLAYER_CHAR clothes_texture "PLAYER_FACE" model "HEAD" body_part 1 
087B: set_player $PLAYER_CHAR clothes_texture "JEANSDENIM" model "JEANS" body_part 2 
087B: set_player $PLAYER_CHAR clothes_texture "SNEAKERBINCBLK" model "SNEAKER" body_part 3 
087B: set_player $PLAYER_CHAR clothes_texture "VEST" model "VEST" body_part 0 
070D: rebuild_player $PLAYER_CHAR 
01B4: toggle_player $PLAYER_CHAR can_move 1 
016A: fade 1 time 0 
04BB: select_interior 0 
0629: change_integer_stat 181 to 4 
016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0 
016D: restart_if_busted_at 1550.68 -1675.49 14.51 angle 90.0 town_number 0 
0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here 
0004: $DEFAULT_WAIT_TIME = 250
03E6: remove_text_box 

// put your create_thread commands here



:MAIN_LOOP
0001: wait $DEFAULT_WAIT_TIME ms
00BF: $TIME_HOURS = current_time_hours, $TIME_MINS = current_time_minutes
0002: jump @MAIN_LOOP 


// put your mods (threads) here


//-------------Mission 0---------------
// put your missions here



//-------------External script 0---------------
// put your external scripts here

:MODEL
thread 'MODEL'
//load models
0247: load_model #TAXI
0247: load_model #colt45
0247: load_model #VBMOCD
0247: load_model #m4
0247: load_model #army

:MODEL_LOAD
00D6: if or
8248:   not model #TAXI available
8248:   not model #colt45 available
8248:   not model #VBMOCD available
8248:   not model #m4 available
8248:   not model #army available
004D: jump_if_false @MODEL_SPAWN
0001: wait 0 ms
0002: jump @MODEL_LOAD

:MODEL_SPAWN
0674: set_car_model #TAXI numberplate ''TAXIFAK''
00A5: $taxi = create_car #TAXI at 2502.051 -1647.781 13.44261
Car.Angle($taxi)= 45.0
0224: set_car $taxi health_to 400

01B2: give_actor $PLAYER_ACTOR weapon 22 ammo 20 //Load the weapon model before using this
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 5

10@ = Actor.Create(CIVMALE, VBMOCD, 2498,822 -1648,172, 13,55685)
0187: $m1 = create_marker_above_actor 10@
0165: set_marker $m1 color_to 0
05E2: AS_actor 10@ kill_actor $PLAYER_ACTOR
actor.Health(10@) = 2000
0350: toggle_actor 10@ maintain_position_when_attacked 1
repeat
wait 0 ms
until actor.Dead(10@)
Marker.Disable($m1)
0186: $m2 = create_marker_above_car $taxi
repeat
wait 0
until Actor.InCar($PLAYER_ACTOR, $taxi)
Marker.Disable($m2)
0004: $coordinaat_x = 2170,619
0004: $coordinaat_y = 1806,133
0004: $coordinaat_z = 13,24167

$coordinaat = Marker.CreateIconAndSphere(0, $coordinaat_x, $coordinaat_y, $coordinaat_z)

:MODEL_WRECKED
wait 0 ms
if
 0119:  car $taxi wrecked
 004D: jump_if_false @MODEL_END
wait 0 ms
jump @MODEL

:MODEL_END
if
01AE:  car $taxi sphere 0 near_point $coordinaat_x $coordinaat_y radius 5.0 5.0 stopped
004D: jump_if_false @MODEL_WRECKED
wait 0 ms
11@ = Actor.Create(COP, army, 2162,625 -1826,44 18,86719)
Actor.Angle(11@) = 0.0
0187: $m3 = create_marker_above_actor 11@
actor.WeaponAccuracy(11@) = 50
actor.Health(11@) = 250
01B2: give_actor 11@ weapon 31 ammo 1000 //Load the weapon model before using this
01B9: set_actor 11@ armed_weapon_to 5
05E2: AS_actor 11@ kill_actor $PLAYER_ACTOR
repeat
wait 0 ms
until actor.Dead(11@)
Marker.Disable($m3)

12@ = Actor.Create(COP, army, 2143,798 -1802,887 16,14063)
Actor.Angle(12@) = 90.0
0187: $m4 = create_marker_above_actor 12@
actor.WeaponAccuracy(12@) = 50
actor.Health(12@) = 250
01B2: give_actor 12@ weapon 31 ammo 1000 //Load the weapon model before using this
01B9: set_actor 12@ armed_weapon_to 5
05E2: AS_actor 12@ kill_actor $PLAYER_ACTOR
repeat
wait 0 ms
until actor.Dead(12@)
Marker.Disable($m4)

13@ = Actor.Create(COP, army, 2179,37 -1781,16 13,53014)
Actor.Angle(13@) = 180.0
0187: $m5 = create_marker_above_actor 13@
actor.WeaponAccuracy(13@) = 50
actor.Health(13@) = 250
01B2: give_actor 13@ weapon 31 ammo 1000 //Load the weapon model before using this
01B9: set_actor 13@ armed_weapon_to 5
05E2: AS_actor 13@ kill_actor $PLAYER_ACTOR
repeat
wait 0 ms
until actor.Dead(13@)
Marker.Disable($m5)


0394: play_music 1
01E3: show_text_1number_styled GXT 'M_PASS' number 10000 time 5000 style 1 // MISSION PASSED!~n~~w~$~1~
Player.Money($PLAYER_CHAR) += 10000
0249: release_model #TAXI
0249: release_model #colt45
0249: release_model #VBMOCD
0249: release_model #m4
0249: release_model #army
end_thread

Bewerkt: door Forumrunner

Featured Replies

Een reactie plaatsen

Je kan nu een reactie plaatsen en pas achteraf registreren. Als je al lid bent, log eerst in om met je eigen account een reactie te plaatsen.

Gast
Op dit onderwerp reageren...

Recent actief 0

  • Er zijn hier geen geregistreerde gebruikers aanwezig.