picking up stuff
picking up stuff
dose anyone know how to make a pelican pick up tanks warthogs and stuff like that? i know you can do this like in coldsnap
(ps i dont know where to post this)
(ps i dont know where to post this)
-
- Posts: 17
- Joined: Mon Jul 09, 2007 12:49 pm
Code: Select all
(global short pelican_name_has_hog_number -1)
(script continuous set_hogs_pelican_name_trigger_volume_name
(begin
(if
(and
(= (volume_test_object trigger_volume_name pelican_name) true)
(= (unit_get_current_flashlight_state pelican_name) true)
)
(begin
(begin
(if
(and
(= (volume_test_object trigger_volume_name vehicle_name) true)
(= pelican_name_has_hog_number -1)
)
(begin
(unit_set_desired_flashlight_state pelican_name false)
(set pelican_name_has_hog_number 1)
)
)
)
)
)
)
)
(script continuous Attach_hogs_pelican_name
(begin
(sleep_until (> pelican_name_has_hog_number -1) 11)
(begin
(if (= pelican_name_has_hog_number 1)
(begin
(sleep 1)
(objects_attach pelican_name "cargo" vehicle_name "")
(objects_detach pelican_name vehicle_name )
)
)
)
)
)
(script continuous Detach_hogs_pelican_name
(begin
(sleep_until (= (unit_get_current_flashlight_state pelican_name) true) 33)
(set pelican_name_has_hog_number -1)
(unit_set_desired_flashlight_state pelican_name false)
)
)
- Cryticfarm
- Posts: 3611
- Joined: Sat Dec 09, 2006 7:23 pm
- Location: canada
- Contact:
-
- Posts: 219
- Joined: Tue Nov 22, 2005 6:48 pm
- Contact:
No. Dont bother Conure, he is too busy.
Instead, ask a-me!
Are you sure that you named your objects the same way in Sapien as well in the script?
Example:
You named your pelican "Awesomeness" in Sapien, but in your script the pelicans name is "Coolness"
To fix that:
Either change the name from Coolness (from the script) to Awesomeness, or change the name from Awesomeness (In Sapien) to Coolness.
Make sure you typed the name right in the script and in Sapien, sometimes it can be some small mistakes, such as from Coolness, to Colness.
Hope I Helped!
Instead, ask a-me!
Are you sure that you named your objects the same way in Sapien as well in the script?
Example:
You named your pelican "Awesomeness" in Sapien, but in your script the pelicans name is "Coolness"
To fix that:
Either change the name from Coolness (from the script) to Awesomeness, or change the name from Awesomeness (In Sapien) to Coolness.
Make sure you typed the name right in the script and in Sapien, sometimes it can be some small mistakes, such as from Coolness, to Colness.
Hope I Helped!
-
- Posts: 219
- Joined: Tue Nov 22, 2005 6:48 pm
- Contact:
- Cryticfarm
- Posts: 3611
- Joined: Sat Dec 09, 2006 7:23 pm
- Location: canada
- Contact:
-
- Posts: 219
- Joined: Tue Nov 22, 2005 6:48 pm
- Contact:
- Cryticfarm
- Posts: 3611
- Joined: Sat Dec 09, 2006 7:23 pm
- Location: canada
- Contact:
-
- Posts: 17
- Joined: Mon Jul 09, 2007 12:49 pm
- MasterNeoChief
- Posts: 2431
- Joined: Tue Dec 23, 2003 9:34 am
- Location: The Netherlands