# Setting a variable that is on a wheeledVehicle

**URL:** <https://forums.unrealengine.com/t/setting-a-variable-that-is-on-a-wheeledvehicle/58330>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [March 15, 2016, 4:10pm UTC](https://forums.unrealengine.com/t/setting-a-variable-that-is-on-a-wheeledvehicle/58330 "2016-03-15T16:10:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeycampbell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joeycampbell](https://forums.unrealengine.com/u/joeycampbell)\
**Post date:** [March 15, 2016, 4:10pm UTC](https://forums.unrealengine.com/t/setting-a-variable-that-is-on-a-wheeledvehicle/58330/1 "2016-03-15T16:10:17Z")

</div>

Hi I am pulling in a sensor reading and passing it from my level blueprint to a widget on my character.  
This worked already…but recently I changed my character from a biped “character” to a “wheeledvehicle”.  
I get the same error even if I try “cast to wheeledvehicle”.  
I’m getting an error (see attached). Any ideas ?

![3ff2974275b6f70afa46230d555d5d7d62e65dcf.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_db18fd9d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_db18fd9d](https://forums.unrealengine.com/u/anonymous_user_db18fd9d)\
**Post date:** [March 15, 2016, 6:28pm UTC](https://forums.unrealengine.com/t/setting-a-variable-that-is-on-a-wheeledvehicle/58330/2 "2016-03-15T18:28:28Z")

</div>

Maybe you can inspect what the “Get Player Character” node returns with a “Print String” node? I’m guessing that it’s not a “Character”, nor a “WheeledVehicle”.

---

<div class="post-metadata">

**Author:** ![Tearl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tearl](https://forums.unrealengine.com/u/Tearl)\
**Post date:** [March 15, 2016, 8:58pm UTC](https://forums.unrealengine.com/t/setting-a-variable-that-is-on-a-wheeledvehicle/58330/3 "2016-03-15T20:58:56Z")

</div>

That means your base classes are different…that Racing\_Bike is not a player character.

---

<div class="post-metadata">

**Author:** ![joeycampbell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joeycampbell](https://forums.unrealengine.com/u/joeycampbell)\
**Post date:** [March 15, 2016, 9:32pm UTC](https://forums.unrealengine.com/t/setting-a-variable-that-is-on-a-wheeledvehicle/58330/4 "2016-03-15T21:32:18Z")

</div>

What should I replace the get character player node with. (Its a player on a bicycle)

---

<div class="post-metadata">

**Author:** ![joeycampbell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joeycampbell](https://forums.unrealengine.com/u/joeycampbell)\
**Post date:** [March 16, 2016, 9:31am UTC](https://forums.unrealengine.com/t/setting-a-variable-that-is-on-a-wheeledvehicle/58330/5 "2016-03-16T09:31:11Z")

</div>

Hi I solved it - as its not a regular character it needs to be connected as a “player pawn” not as a “player character” and also needs to be cast to the parent class before the blueprint (parent class being wheeled vehicle).  
This works now:

 ![1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/b/fb707d10ef9aa331d6f7c1ab5123d0a7d40464fa.jpeg)
