Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- example const-end
- http://j16d.blogspot.com
- }
- const
- NEW_ACTOR = 15@
- end
- {$CLEO}
- 0000:
- while true
- if 0AB0: key_pressed 8 // backspace
- then
- 0ACA: show_text_box "actor created"
- 04C4: store_coords_to 2@ 3@ 4@ from_actor 215@ with_offset 1.0 3.0 1.0
- 02CE: 4@ = ground_z_at 2@ 3@ 4@
- 009A: NEW_ACTOR = create_actor_pedtype 4 model #MALE01 at 2@ 3@ 4@
- wait 500 /// prevent key looping
- repeat
- wait 0
- until 0AB0: key_pressed 8 // backspace
- 0223: set_actor NEW_ACTOR health_to 0
- 01C2: remove_references_to_actor NEW_ACTOR // Like turning an actor into a random pedestrian
- 0ACA: show_text_box "actor killed"
- wait 500 /// prevent key looping
- end
- wait 0
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement